URL Encoder Decoder
Percent-encode text for URLs, query strings or forms, or decode encoded links with a breakdown of every parameter.
Open toolEscape or unescape strings for JSON, JavaScript, Python, Java, C#, C, HTML, XML, URLs, CSV, SQL and shell.
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.
Your code or text
Pasted or opened from a file
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Choose Escape or Unescape and the target format.
Paste the text.
Copy the result.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Paste the text.
Copy the result.
Percent-encode text for URLs, query strings or forms, or decode encoded links with a breakdown of every parameter.
Open toolEscape HTML special characters into entities, or decode entities like & and © back to readable text.
Open toolEscape 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 toolQuote any text safely for bash (single, double, $'…' or minimal) and see how bash splits and expands a command line.
Open tool