Skip to content
Developer & CodeLocal · Stays on device

String Escape Converter

Escape or unescape strings for JSON, JavaScript, Python, Java, C#, C, HTML, XML, URLs, CSV, SQL and shell.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
string-escape-converterOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

About this tool

Turn raw text into a valid string literal for the language you’re writing — quotes, backslashes, line breaks, tabs and control characters are escaped the way JSON, JavaScript (single, double or template literals), Python, Java, C#, C/C++ expect. Optionally write all non-ASCII characters as \u escapes, with surrogate pairs or \U / \u{…} forms where each language needs them. HTML/XML entities, URL encoding, CSV quoting, SQL single-quote doubling and shell single-quoting are included too.

Switch to Unescape to turn an escaped string from logs or source code back into readable text, with a clear message when an escape sequence is invalid. Escaping helps produce valid literals; it’s not a substitute for parameterised SQL queries or proper output encoding. Everything runs in your browser. Your data is never uploaded, logged or stored.

  1. Input

    Your code or text

    Pasted or opened from a file

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Choose Escape or Unescape and the target format.

  2. 2

    Paste the text.

  3. 3

    Copy the result.

Zero-upload architecture

How to use String Escape Converter for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open String Escape Converter

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Paste the text.

  3. 3

    Get your result

    Copy the result.

  • Local

    URL Encoder Decoder

    Percent-encode text for URLs, query strings or forms, or decode encoded links with a breakdown of every parameter.

    Open tool
  • Local

    HTML Entity Encoder

    Escape HTML special characters into entities, or decode entities like & and © back to readable text.

    Open tool
  • Local

    Regular Expression Escape Tool

    Escape text so it matches literally in a regex pattern, a character class or a replacement string, for JavaScript, PCRE, Python, Java, .NET or POSIX.

    Open tool
  • Local

    Bash Quoting Helper

    Quote any text safely for bash (single, double, $'…' or minimal) and see how bash splits and expands a command line.

    Open tool