HTML Entity Encoder / Decoder
Escape text to HTML entities or decode entities back to characters.
Why escape HTML
Certain characters have special meaning in HTML: < and > delimit tags, & starts an entity, and quotes delimit attributes. To show them as literal text — or to safely place untrusted text into a page — you replace them with entities like < and &. Getting this right is a core defence against cross-site scripting (XSS): escape user input before it reaches the HTML.
Named and numeric
The five markup-significant characters encode to their named entities. With "encode non-ASCII" on, every character above the ASCII range (accents, symbols, emoji) becomes a numeric entity (é), which is useful for ASCII-only pipelines. Decoding resolves both named and numeric entities back to text, using the browser's own parser, and runs entirely on your device.
These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.