URSY.IOPART OF THE URSY NETWORKSign in400 free tools

Developer Tools

String Escape / Unescape

Escape or unescape strings for JSON, HTML, URLs and JS quotes.

Free No account Runs on this device
Developer Tools
Tool ready

Your inputs stay in this browser tab.

Powering up the tool…

TOOL STRING-ESCAP

What this tool does

About the string escape / unescape

Four flavours, both directions, correct edge behaviour.

How to use it

  1. Pick flavour and direction.
  2. Paste the text.
  3. Copy the result.
  4. Escaping is context-specific — always pick the destination’s flavour.

Useful for

  • Embed arbitrary text safely in JSON or JS.
  • Decode a percent-encoded blob from a URL.
  • Neutralise HTML before display.

Straight answers

String Escape / Unescape FAQ

Why are there different escapings at all?

Each context has different dangerous characters: quotes break JSON strings, angle brackets break HTML, ampersands break URLs. Escaping is context-armour — using the wrong flavour is how injection bugs are born.

Is escaping the same as sanitising?

No: escaping makes text inert IN a context; sanitising REMOVES dangerous content. Displaying user input wants escaping at output time — this tool is that operation, portable.