String Escape / Unescape

Escape or unescape text for JSON, JavaScript, HTML, URL or raw backslash sequences.

Frequently asked questions

What does string escaping do?

It replaces characters that have special meaning in a given context with safe escape sequences. For example, a double quote inside a JSON string becomes \", and a < in HTML becomes <. Unescaping reverses it.

Which formats are supported?

JSON string escaping, JavaScript string escaping, HTML entity encoding, and URL percent-encoding, each in both directions (escape and unescape).

Does it run locally?

Yes, entirely in your browser. Paste secrets or internal strings safely; nothing is transmitted.