Examples
Represent 'He said "hello".' as a JSON string
Input
He said "hello".Expected answer
"He said \"hello\"."- Escape level
Minimal- Escape quote
Double- JSON compatible
On- ES6 compatible
On- Uppercase hex
Off
Represent 'C:\\logs\\release.txt' as a JSON string
Input
C:\logs\release.txtExpected answer
"C:\\logs\\release.txt"- Escape level
Minimal- Escape quote
Double- JSON compatible
On- ES6 compatible
On- Uppercase hex
Off
Represent 'line one\nline two' as a JSON string
Input
line one
line twoExpected answer
"line one\nline two"- Escape level
Minimal- Escape quote
Double- JSON compatible
On- ES6 compatible
On- Uppercase hex
Off
Represent 'tab\tseparated' as a JSON string
Input
tab separatedExpected answer
"tab\tseparated"- Escape level
Minimal- Escape quote
Double- JSON compatible
On- ES6 compatible
On- Uppercase hex
Off
Represent "single quote: '" as a JSON string
Input
single quote: 'Expected answer
"single quote: '"- Escape level
Minimal- Escape quote
Double- JSON compatible
On- ES6 compatible
On- Uppercase hex
Off
complex
Input
4ec985786aa10a7515d8be2d.bin
115 bytes
DownloadExpected answer
null\0backspace\btab\tnewline\nverticaltab\x0bformfeed\fcarriagereturn\rdoublequote"singlequote\'hex\xa9unicode\u2665codepoint\u{1d306}- Escape level
Special chars- Escape quote
Single- JSON compatible
Off- ES6 compatible
On- Uppercase hex
Off
double quotes
Input
Hello "World"!Expected answer
Hello \"World\"!- Escape level
Special chars- Escape quote
Double- JSON compatible
Off- ES6 compatible
On- Uppercase hex
Off
single quotes
Input
Escape 'these' quotes.Expected answer
Escape \'these\' quotes.- Escape level
Special chars- Escape quote
Single- JSON compatible
Off- ES6 compatible
On- Uppercase hex
Off
special characters
Input
1203ab8e4358d1fe9949e85d.bin
100 bytes
DownloadExpected answer
Fizz & buzz\n\ttabbed newline\rcarriage returned line\nbackspace character: \"\b\" form feed character: \"\f\"- Escape level
Special chars- Escape quote
Double- JSON compatible
Off- ES6 compatible
On- Uppercase hex
Off
Supports the following escape sequences:\n (Line feed/newline) \r (Carriage return) \t (Horizontal tab) \b (Backspace) \f (Form feed) \xnn (Hex, where n is 0-f) \\ (Backslash) \' (Single quote) \" (Double quote) \unnnn (Unicode character) \u{nnnnnn} (Unicode code point)
Format reference: Escape string background and specification
Parameters
| Parameter | Default value | Input and choices |
|---|---|---|
| Escape level | Special chars | Special chars, Everything, Minimal |
| Escape quote | Single | Single, Double, Backtick |
| JSON compatible | false | On or off |
| ES6 compatible | true | On or off |
| Uppercase hex | false | On or off |