HTML Encoder & Decoder
Convert text to HTML entities or decode entities back to plain text. Handles named entities and numeric (decimal and hex) references. Escape markup safely, all in your browser.
HTML entity encoding
To show characters that HTML treats specially (<, >, &,
quotes) you replace them with named or numeric entities like < and
é. Encode turns raw text into safe, displayable markup;
Decode turns entities back into the characters they represent, understanding both named
and numeric (decimal and hex) forms.
All conversion happens in your browser, nothing is uploaded.
What this does
An HTML encoder converts characters like <, > and & into HTML entities so they display as text, and decodes entities back to plain text.
How to use it
- Paste text or HTML entities.
- Choose encode or decode.
- Read the result.
- Copy it.
How it works
Special characters become <, > and & on encode. Decoding handles common named entities plus numeric references in decimal (é) or hexadecimal (é) form.
Example
“<b>” encodes to “<b>”, which the browser shows as text rather than markup.
Sources & methodology
Last updated .
Frequently asked questions
Why encode HTML entities?
Characters like <, > and & have special meaning in HTML. Encoding them as <, > and & lets you display them as text instead of having the browser interpret them as markup.
Which entities can it decode?
It decodes common named entities (such as © and —) plus any numeric reference in decimal (é) or hexadecimal (é) form.
Is my text uploaded?
No. Conversion happens entirely in your browser; nothing is sent or stored.
Related tools
Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to text, with a URL-safe (base64url) option. UTF-8 aware, so emoji and accented characters round-trip perfectly. Runs in your browser.
URL Encoder & Decoder
Percent-encode text for safe use in URLs or decode it back, with component, full-URI and form (application/x-www-form-urlencoded) modes. Private and instant, all in your browser.
JWT Decoder
Decode a JSON Web Token to read its header and payload, with standard time claims (iat, exp, nbf) shown as readable dates and an expiry check. Decoding only, done privately in your browser.
Text Encrypt & Decrypt
Encrypt a message with a password using AES-GCM and PBKDF2, then share the Base64 result. Decrypt it back with the same password. Strong, authenticated, and entirely in your browser.