String Escape / Unescape

Escape and unescape strings for JavaScript, JSON, HTML, SQL, regex, CSV, and shell.

Runs entirely in your browser — nothing is uploaded or stored on any server.

About String Escape / Unescape

Updated Mar 2026

Escape or unescape strings for multiple contexts: JavaScript (\n, \t, unicode escapes), JSON, HTML entities, SQL single-quote doubling, regex metacharacter escaping, CSV quoting, and shell single/double quoting. Select the language/format, choose encode or decode, and get instant output.

Frequently Asked Questions

Related Tools