Online Javascript String escaping
Used for String escaping in Javascript.
Paste your text into the box below and click "encode"
Javascript and Java String encoded result
This tool replaces all characters known to cause problems, with correct escape characters.
The escaped result is compatible with Strings in JavaScript.
Escape characters used for String escaping, by this tool:
| Escape sequence | Description |
| \t | Tab |
| \b | Backspace |
| \n | Newline |
| \r | Carriage return |
| \f | Formfeed |
| \' | Single quote |
| \" | Double quote |
| \\ | Backslash |
| \& | And |
| \uXXXX | Unicode character, used for characters above 127 |
