JavaScript Escape/Unescape
Escape and unescape JavaScript strings. Convert special characters for safe usage in JavaScript code.
0
Input Characters
0
Output Characters
0%
Size Ratio
Why Use This Tool?
Escape & Unescape
Switch between encoding and decoding modes instantly with one click.
100% Private
All processing happens in your browser. Your data never leaves your device.
Real-time Processing
Instant conversion as you type. No delays, no server requests.
JavaScript Escape Characters
Common Escape Sequences:
| Character | Escape Sequence | Description |
|---|---|---|
| ' | \' | Single quote |
| " | \" | Double quote |
| \ | \\ | Backslash |
| newline | \n | New line |
| tab | \t | Horizontal tab |
| carriage return | \r | Carriage return |
Example:
Input:
Hello "World" New line here
Escaped Output:
Hello \"World\"\nNew line here