String Escape & Unescape

Escape or unescape strings for JSON, JavaScript, HTML, URL, and Unicode. Click Escape or Unescape to process.

Mode:
Input
Output
Click Escape or Unescape to process

Mode Reference

JSON Escapes quotes, backslashes, newlines, tabs
JavaScript Same as JSON + single quotes, null bytes
HTML Escapes < > & " '
URL encodeURIComponent / decodeURIComponent
Unicode Non-ASCII to \uXXXX escape sequences

Get the JSON & API Cheat Sheet

Formatting tricks, jq commands, and common patterns — one page, zero fluff.