HTML Encoder & Decoder
Escape HTML so it displays as text — turn < into <, & into & and so on — or decode entities back into normal characters. Optionally convert accents, currency signs and typographic symbols to named or numeric entities for ASCII-only files and email templates.
By Miikka · CalcBrew · Updated
Encoded output
Share:
Common HTML entities
| Character | Named | Numeric | Use |
|---|---|---|---|
| < | < | < | tag start |
| > | > | > | tag end |
| & | & | & | entity start |
| " | " | " | attribute quote |
| ' | — | ' | attribute quote |
| non-breaking space | |   | keep words together |
| © | © | © | copyright |
| — | — | — | em dash |
| € | € | € | euro |
| é | é | é | accent |
HTML5 defines 2,231 named entities, but in practice the five basic ones plus cover almost everything. Frameworks such as React, Vue and modern template engines escape output automatically; this tool is for the cases where you write raw HTML, documentation, CMS fields or email markup by hand.
Frequently asked questions
Cite this calculator
APA
CalcBrew. (2026). HTML Encoder & Decoder. https://calcbrew.com/html-encoderMLA
“HTML Encoder & Decoder.” CalcBrew, 2026, calcbrew.com/html-encoder.Link to https://calcbrew.com/html-encoder. Results are estimates; cite the underlying formula or data source for academic work.
Related tools
JavaScript Formatter & BeautifierFree JavaScript formatter: beautify minified or messy JS with Prettier — 2 or 4 spaces or tabs, semicolons…JavaScript MinifierFree JavaScript minifier powered by Terser: remove whitespace and comments, shorten variable names and apply…JSON Formatter, Validator & Minifier OnlineFree JSON formatter: pretty-print JSON with 2 or 4 spaces or tabs, validate it with the exact error line and…URL Encoder & DecoderFree URL encoder and decoder: percent-encode text for query strings (encodeURIComponent) or whole URLs…UUID GeneratorFree UUID generator: create one or hundreds of version 4 (random) or version 7 (time-ordered) UUIDs/GUIDs…XML Formatter & BeautifierFree online XML formatter: pretty-print messy XML with 2 or 4 spaces or tabs, validate it and see the exact…
More in Developer Tools · All tools & games