HTML Entity Encoder & Decoder
Convert special characters to named, decimal, or hex HTML entities and decode encoded HTML entities back to raw text.
Batch workspace
Format multiple files locally in one run.
How to use the HTML Entity Encoder & Decoder
Paste code or file
Paste your raw TEXT text or upload directly.
Configure options
Choose indentation, dialect, or formatting preferences.
Format & export
Click format, then copy, download, or inspect in tree view.
What is a HTML Entity Encoder & Decoder?
Convert special characters to named, decimal, or hex HTML entities and decode encoded HTML entities back to raw text. This tool re-indents and organizes code according to standard style conventions while checking for syntax validity. Everything executes 100% inside your browser, guaranteeing zero latency and complete privacy for API keys, user tokens, and confidential database schemas.
Options Explained
| Option | Description |
|---|---|
| Conversion Mode | Select whether to encode special characters into HTML entities or decode entities back into plain characters. |
Frequently Asked Questions
Why do I need to encode HTML entities?
HTML reserved characters like `<`, `>`, `&`, and quotes must be encoded to prevent browsers from misinterpreting them as HTML tags or attributes, protecting against XSS and display errors.
What is the difference between named, decimal, and hex entities?
Named entities use mnemonic names (e.g. `©`), decimal entities use ASCII/Unicode numeric values (`©`), and hex entities use hexadecimal values (`©`). All render identically in modern browsers.
Is my data uploaded when I use the HTML Entity Encoder & Decoder?
No. All processing runs entirely in your browser. Nothing is sent to a server unless you explicitly create a share link.
Does this tool work offline?
Yes. After the first visit, the PWA service worker can serve the page and run the formatter without a network connection.
What is the maximum input size?
Most tools accept up to about 5MB in the editor. Very large inputs are processed preferentially in a Web Worker and may download instead of filling the output pane.