HTML escape & text encoding tools for developers
Simple online tools for escaping and decoding text used in HTML, Java, JavaScript, and other programming environments. Paste your text, convert it instantly, and copy the result.
Tools
HTML Escape
Convert text into safe HTML entities – tags, quotes, Unicode and emoji.
HTML Unescape
Decode named and numeric HTML entities back into readable text.
URL Encode & Decode
Percent-encode text for URLs and query strings, or decode it back.
Base64 Decode & Encode
Decode Base64 to text or a file, or encode text as Base64.
Java String Escape
Escape text for safe use in Java string literals.
JavaScript String Escape
Escape text for JavaScript string literals, safe inside <script>.
Base64 File Encoder
Convert an image, PDF or any file to raw Base64 or a ready-to-use data URL.
JSON Editor & Formatter
View, format and validate JSON as a collapsible tree, edit values inline and export pretty or minified.
Why escape text?
Many programming languages and markup formats require special characters to be escaped so they are interpreted correctly. Characters such as <, >, quotes, backslashes, and control characters can break HTML, Java, JavaScript, or JSON if they are not encoded properly.
These tools help developers quickly convert text into safe encoded forms or decode escaped text back into readable content.
About this site
I started this site in 2006 to build small utility tools I needed in my own work as a programmer. It has gradually grown into a collection of simple tools for escaping and decoding text used in HTML, Java, JavaScript, and other programming environments.
Frequently asked questions
What is text escaping?
Text escaping converts characters into encoded representations so they can safely appear inside code or markup.
What tools are available?
This site provides tools for HTML escaping and decoding, URL encoding and decoding, Base64 encoding and decoding of text and files, Java and JavaScript string escaping, and a JSON editor for viewing, editing and formatting JSON.
Is my text sent to a server?
No. All conversions run locally in your browser with JavaScript, so the text and files you paste never leave your device.