String Escape / Unescape
Escape or unescape strings for use in different contexts.
Input
Output
About String Escaping
Different contexts require different escaping rules. JavaScript uses backslash sequences. JSON requires strict escaping of control characters. HTML escaping prevents XSS. SQL escaping prevents injection attacks. RegEx escaping neutralizes meta-characters.
Other Tools
Encode or decode text with multiple encoding and output format options.
Encode or decode URLs with different modes for different situations.
Encode or decode HTML special characters using named, decimal, or hex formats.
Convert any image file to a Base64 data URI for embedding in HTML or CSS.
Generate cryptographic hashes from any text. Optional HMAC secret.
Decode and inspect JWT tokens without a secret key. Header, payload, and expiry at a glance.
Format, validate, minify, and sort your JSON with statistics.
Format, validate, and minify XML with real-time error highlighting.