HTML Entity Encoder & Decoder (& → &)
About the HTML Entity Encoder / Decoder
HTML reserves characters like <, >, & and quotes for markup, so displaying them as text requires entities such as < and &. This tool encodes plain text into safe entities and decodes entity soup back into readable characters — including named accents (é), decimal (é) and hex (é) forms.
Typical uses: pasting code snippets into blog posts, sanitizing user-provided strings before templating, and cleaning text copied from badly exported documents.
How to use the HTML Entity Encoder / Decoder
- Paste your text into the input.
- Click Encode or Decode.
- Copy the converted result.
Frequently asked questions
Which characters actually need encoding?
Only & < > (and quotes inside attributes) are mandatory; encoding others is optional. This tool encodes the safe minimal set by default and offers an “encode all non-ASCII” mode for paranoid contexts like XML.
Why did my &amp; become &?
You decoded once — the original text was double-encoded. Encode/decode repeatedly to step through each layer.
Does it decode numeric entities like —?
Yes — decimal and hexadecimal numeric references for any code point are supported, including emoji.
Related tools
URL Encoder / Decoder
URLs may only contain a limited set of ASCII characters, so spaces, accents and symbols are written as %XX percent-escapes.
Base64 Encoder / Decoder
Base64 represents binary data using 64 safe ASCII characters, which is how emails attach files, JSON carries binary blobs and…
JSON Formatter
Paste JSON and this tool tells you instantly whether it is valid — and if not, exactly where it breaks, with the error position.