HTML Entity Encode
A free, instant HTML Entity Encode. Paste your text and convert it right in your browser — handles named and numeric entities, and never uploaded.
More presets
Jump to another preset — each opens its own page ready to go:
How to use the HTML Entity Encode
- Paste your text into the box.
- The result updates live — switch between encode and decode any time.
- Copy the result.
About the HTML Entity Encode
HTML entities represent characters that are reserved in HTML (like &, < and >) or awkward to type, writing them as codes such as & or © so they render correctly. This HTML Entity Encode converts between plain text and those entities.
Everything runs in your browser, so the text you convert never leaves your device. Decoding understands the full named-entity set via the browser's parser, and encoding can escape just the reserved characters or every non-ASCII one.
Escapes the five characters HTML treats as syntax — ampersands, angle brackets and quotes — so code samples, user text and snippets display as written instead of being interpreted as markup. An optional mode also converts every non-ASCII character to numeric entities, useful for legacy systems and email templates that mangle raw Unicode.
Frequently asked questions
What does the HTML Entity Encode do?
It converts between plain text and HTML entities so characters display correctly instead of breaking the markup. Paste your text and the result updates live.
Does it support named and numeric entities?
Yes. Decoding uses the browser's HTML parser, so named entities (©, ) and numeric entities (©) are all handled; encoding can target the reserved characters or every non-ASCII character.
Is my text uploaded?
No. The HTML Entity Encode runs entirely in your browser, so your text never leaves your device.
Can I switch between encode and decode?
Yes. Toggle the mode at the top to convert in either direction; both run locally and update instantly.
When do I need to HTML-encode text?
Whenever text you did not write ends up inside HTML — user comments, code examples, product names with ampersands. Unescaped angle brackets can swallow the rest of the page or inject unintended markup; encoding makes the browser render the characters literally.