HTML Entity Encoder / Decoder
Free · No sign-up · Your files never leave your browser
Free, no sign-up — paste your text and encode or decode HTML entities in one click.
Some characters mean something special inside HTML. A less-than sign starts a tag, an ampersand starts an entity, and a quote ends an attribute — so if you want those characters to simply appear on a page, you must write them in escaped form: entities. This tool converts in both directions: Encode escapes raw text, and Decode turns entities back into plain characters.
HTML Entity Encoder / Decoder
Encode special characters for HTML — or decode entities back.
Free, no sign-up — paste your text and encode or decode HTML entities in one click.
Everything runs in your browser — your text is never uploaded.
Encode converts exactly 24 special characters: named entities for 23 of them, and a numeric reference for the apostrophe — every other character passes through unchanged, so accented letters are not encoded. Nothing converts as you type; use the Encode and Decode buttons. Decode hands your text to the browser entity parser, so it also accepts decimal and hex numeric references.
Some characters mean something special inside HTML. A less-than sign starts a tag, an ampersand starts an entity, and a quote ends an attribute — so if you want those characters to simply appear on a page, you must write them in escaped form: entities. This tool converts in both directions: Encode escapes raw text, and Decode turns entities back into plain characters.
Your files never leave your device
No uploads, no queues, no waiting
No account, no card, nothing to install
Who needs this, and when
Developers meet this whenever text has to live inside markup: a code sample on a tutorial page, a product name containing an ampersand inside an attribute, or a price in pounds or euros in a template. Writers pasting examples into a CMS need the same escape so the example shows as text instead of being swallowed as a tag. And anyone who receives text full of entities like © or © from an export or old database needs the reverse trip.
How to use the HTML Entity Encoder / Decoder
- Type or paste your text into the top box — raw HTML, plain text, or text already full of entities.
- Click Encode → to escape the special characters into HTML entities, ready to paste safely into a page or attribute.
- Or click ← Decode to turn named, decimal and hex entities back into the plain characters they stand for.
- Read the result in the lower box. Nothing converts as you type; the buttons do the work.
- Click Copy to copy the result; the button briefly shows a Copied confirmation.
Exactly what Encode does — the 24-character table
Encode scans your text once and replaces every character from one fixed table of 24. The five markup characters are the core: the ampersand becomes &, the less-than sign becomes <, the greater-than sign becomes >, the double quote becomes ", and the apostrophe becomes '. Nineteen more characters get named references: © becomes ©, ® becomes ®, ™ becomes ™, € becomes €, £ becomes £, ¥ becomes ¥, § becomes §, ± becomes ±, × becomes ×, ÷ becomes ÷, – becomes –, — becomes —, ‘ becomes ‘, ’ becomes ’, “ becomes “, ” becomes ”, • becomes •, … becomes …, and a non-breaking space becomes .
Two details matter. First, 23 of the 24 mappings are named references — the apostrophe is the exception, written as the numeric reference ' because that is exactly how the table is coded. Second, the scan is a single pass and the ampersand itself is in the table, so already-encoded text gets encoded again: an existing < comes out as &lt;. Decode once to get back to where you started.
Decode takes a wider route. Instead of a fixed table, your text goes to the browser’s own HTML entity parser — the same textarea technique the original tool used — so named, decimal and hex references all decode, including entities Encode never produces.
Honest limits: what this tool does not do
The fixed table is also the limit. Only those 24 characters are ever encoded. Accented letters such as é, arrows, emoji and every other Unicode character pass through exactly as typed. There is deliberately no encode-everything-non-ASCII mode, no decimal-or-hex output switch, and no choice between named and numeric forms — the output is the table above, nothing else.
There is no live conversion, no file upload, no bulk mode and no entity lookup table — just two text boxes and three buttons. Decode depends on your browser’s parser, so an entity name it does not recognise is left as it is rather than guessed at. And text that was accidentally double-encoded needs two Decode clicks, one per layer.
Frequently asked questions
Is this HTML entity encoder decoder really free?
Yes. Paste your text, click Encode or Decode and copy the result — no payment, no account, no watermark and no limit on how much text you convert.
How do I use the tool?
Type or paste your text into the top box. Click Encode → to turn special characters into HTML entities, or ← Decode to turn entities back into plain characters. The result appears in the lower box; click Copy to copy it.
Which characters does Encode convert?
Exactly 24 characters: the ampersand becomes &, < becomes <, > becomes >, the double quote becomes ", the apostrophe becomes ', © becomes ©, ® becomes ®, ™ becomes ™, € becomes €, £ becomes £, ¥ becomes ¥, § becomes §, ± becomes ±, × becomes ×, ÷ becomes ÷, – becomes –, — becomes —, ‘ becomes ‘, ’ becomes ’, “ becomes “, ” becomes ”, • becomes •, … becomes …, and a non-breaking space becomes . Every other character passes through unchanged.
Why does the apostrophe become a numeric reference instead of a named entity?
Because that is how the conversion table is written: 23 of the 24 characters map to named references, and the apostrophe alone maps to the numeric reference '. Browsers treat it exactly like a named entity, and it is safe in both HTML and XML-style markup.
What does Decode accept — named, decimal or hex entities?
All three. Decode hands your text to the browser’s own HTML entity parser, so named references such as ©, decimal references such as © and hex references such as © all decode to the same character — including named entities that Encode itself never produces.
Does Encode also convert accented letters and other Unicode symbols?
No. Only the 24 listed characters are converted. Accented letters such as é, arrows, emoji and every other Unicode character pass through exactly as typed. If you need every non-ASCII character encoded, this is not the tool for that job.
Related tools
- Converter & Utility Tools — the full converter and utility toolbox on one page, including this HTML Entity Encoder / Decoder.
- Free Tools — every free VeloSpark Digital tool in one place.
Built by Umar Hayat — VeloSpark Digital
More Converter & Utility Tools
- QR Code Generator — free QR code generator: turn any link or text into a scannable QR code in seconds.
- Converter & Utility Tools — the full converter & utility toolbox on one page.
- Free Tools — every free VeloSpark tool, guide and category in one place.
