String Escape / Unescape
Escape and unescape strings for JavaScript, JSON, HTML, SQL, regex, CSV, and shell.
About String Escape / Unescape
Updated Mar 2026Escape 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
HTML Entity Reference
Browse and search all HTML entities. Copy named, decimal, he…
Base64 Encode
Encode text or files to Base64. Used for embedding binary da…
Base64 Decode
Decode Base64 strings back to plain text or binary. Instantl…
URL Encode
URL-encode a string to make it safe for use in URLs and quer…
URL Decode
Decode percent-encoded URL strings back to readable text.
HTML Encode
Convert special characters to HTML entities to safely displa…
HTML Decode
Convert HTML entities back to their original characters for …
Unicode Encode
Convert text to Unicode escape sequences (\uXXXX) for safe e…