String Escaper
Make backslashes, quotes and control characters visible as escapes, or restore supported escape sequences. This helps compare the contents of a string used in a code example.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Enter raw or escaped text and choose a direction. Decoding substitutes recognized backslash patterns rather than evaluating a complete JavaScript expression or program.
Results and examples
An actual newline becomes the visible backslash-n sequence when escaped. Decoding \u0041 produces A; choose the direction carefully if the literal escape notation is what you intend to preserve.
Limitations
- The transformation is not identical to every programming language’s string syntax.
- It does not replace safe quoting for HTML, SQL or shell contexts.
Fields
| Field | Guidance and constraints |
|---|---|
| Input | Check the unit and format displayed beside this field. |
| Result | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
How does a newline appear after escaping?
An actual newline becomes the visible backslash-n sequence when escaped. Decoding \u0041 produces A; choose the direction carefully if the literal escape notation is what you intend to preserve.
Can I paste it into any language?
The transformation is not identical to every programming language’s string syntax. It does not replace safe quoting for HTML, SQL or shell contexts.