Skip to main content

String Escaper

v1.0.1

Escape and unescape strings for JSON, JavaScript, HTML, RegExp, CSV, SQL, and XML formats.

Escapes and unescapes strings for multiple contexts — HTML entities, JSON, JavaScript/TypeScript string literals, SQL single-quote escaping, URL percent-encoding, and XML character references.

How to use
  • Paste your string and select the target context (HTML, JSON, URL, SQL, XML) from the dropdown.
  • Click "Escape" to encode special characters or "Unescape" to decode an already-escaped string.
  • Use the "All targets" view to see your string escaped for every context at once.
  • Copy the escaped output for direct use in your code, HTML template, or database query.