Escape and unescape strings instantly for 10 language modes: JSON, JavaScript/TypeScript, Python, Java, C#, SQL, HTML, XML, CSV, and Regex. Paste raw text, pick a mode, and hit Escape — or paste escaped text and hit Unescape to recover the original. No data leaves your browser. Select Language / Context Bulk mode (process each line independently) Input Output Escape Unescape Copy Output Clear Escape Sequence Reference How to Use Select a mode — choose the target language or format from the buttons above. Paste input — enter the raw string you want to escape (or an already-escaped string to unescape). Escape / Unescape — click the appropriate button; the result appears instantly on the right. Bulk mode — when enabled, each line of input is escaped/unescaped independently, making it easy to process lists of strings. Copy Output — copies the result to your clipboard with one click. What Each Mode Handles JSON — ", \, /, control chars, unicode (\uXXXX) JavaScript / TypeScript — single & double quotes, backtick, \n \t \r \0, unicode Python — single & double quotes, \n \t \r \\ \0, raw-string awareness Java / C# — standard C-style escapes plus unicode \uXXXX SQL — single-quote doubling, backslash mode toggle HTML — named entities: & < > " ' XML — same five entities as HTML, strictly per XML spec CSV — field quoting, embedded quote doubling, newline handling Regex — escapes all regex metacharacters: . * + ? ^ $ { } [ ] | ( ) \ Related Tools JSON Formatter HTML Entity Encoder URL Encoder Related Tools Case Converter Character Counter Regex Cheatsheet ...