HTML Entity Encoder
Encode Unicode for HTML text or quoted attributes, or decode character references as plain text.
- Free
- Works Offline
- No Uploads
How to Encode or Decode HTML Entities
- Open the HTML, review Security Check, then select Continue.
- Paste text, open a UTF-8 .txt file, or select Open Sample.
- Choose an encoding context or Decode References. In an encoding mode, choose how to present other Unicode characters.
- Select Encode Text or Decode Text. Review, copy, or download the plain-text result.
HTML Escape Tool and Character Reference Decoder
- Escape ampersands, brackets, apostrophes and quotation marks.
- Choose decimal character references for other Unicode characters.
- Decode complete named or numeric references and keep invalid references visible.
Formats and Compatibility
| Input | Paste Unicode text or choose a UTF-8 .txt file. Select HTML Text, Quoted Attribute, or Decode References. |
|---|---|
| Output | Review the UTF-8 byte counts, then copy or download the complete plain-text result. |
| Browser | A modern browser with local file support. |
| Scope | Paste or open up to 1 MiB of UTF-8 text. Encode ordinary HTML text or quoted plain-text attribute values, or decode semicolon-terminated references. |
| Operating Systems |
Local Processing Without Uploads
Use the browser-based HTML entity encoder without uploading files.
Select Open Sample to see the workflow with the included example.
HTML Text, Quoted Attributes, and Entity References
HTML text escapes ampersands, angle brackets and quotes. Quoted attributes also escape tabs and line breaks. Decode named, decimal, and hexadecimal references in one pass.
Use the Text in the Chosen HTML Context
The preview is plain text. Escape ordinary content or a quoted plain-text attribute value for its intended context. Scripts, styles, URLs and document sanitization require their own handling.
Frequently Asked Questions
How do I use the HTML entity encoder offline?
Use the HTML entity encoder download, extract the ZIP, and open HTMLEntityEncoder.html. The free HTML entity encoder comes with a sample.
Can I use the HTML entity encoder in browser?
Yes. The local HTML entity encoder reads and transforms text on your device.
Which references can the HTML entities decoder read?
It accepts named and numeric references ending in a semicolon. Unknown, invalid or unterminated references are kept with a note.
How do the two encoding contexts differ?
Quoted Attribute also writes tabs and line breaks as numeric references. Use that result inside a quoted plain-text attribute such as title.
Can the preview render my HTML?
The preview and clipboard contain text. Download Text saves UTF-8 in a .txt file.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.