String Escape & Unescape

About this tool

Escape text so it is safe inside a JSON, JavaScript, HTML, XML, SQL, CSV, regex or shell string, or turn an escaped string back into plain text. Works in your browser — nothing is sent to our servers.

Frequently asked questions

What is String Escape & Unescape?

Escape or unescape text for JSON, JavaScript/Java/Python strings, HTML, XML, SQL, CSV, regex and shell, with optional Unicode escapes for non-ASCII characters. It is one of the Encoders & Decoders tools on MyCodeTips.

How do I use String Escape & Unescape?

Open the tool, enter or paste your input, and the result appears right away. Use the Copy button to copy it.

Is String Escape & Unescape free to use?

Yes. It is free to use and does not need an account.

Is my data safe with String Escape & Unescape?

The result is produced on our servers. We do not sell your data; see our privacy policy for details.

Can I share my result?

Yes. Use the share buttons below the tool to post a link or copy a link to the tool page.

Which tools are related to String Escape & Unescape?

URL Encoder & Decoder, HTML Entity Encoder & Decoder, Regex Tester.

Input
Output