Convert ampersands, angle brackets, quotation marks and apostrophes into HTML-safe character entities.
ENCODE & DECODE HTML ENTITIES
HTML Entity Encoder & Decoder Online
Encode reserved HTML characters into safe entities or decode HTML entities back to readable text instantly in your browser.
TESTED & REVIEWED
Know what this tool does—and where to double-check
- Reviewed by
- HTML Online Viewer project
- Last reviewed
- Processing
- Ordinary processing happens in this browser tab; the tool does not intentionally upload your source.
- Important limitation
- Automated conversion may not preserve every unusual syntax or application-specific edge case. Keep a backup and test the result in its destination.
WHY USE IT
A focused tool for reliable HTML work
Turn named and numeric HTML entities back into readable Unicode text with one click.
Encoding and decoding happen locally without sending snippets or content to a server.
HOW IT WORKS
Three quick steps
- 01Paste HTML or text
Add the characters or encoded entities you want to transform.
- 02Choose encode or decode
Create safe entities or restore encoded content to readable text.
- 03Copy the result
Use the transformed output in HTML, templates, documentation or data files.
HTML ENTITY EXAMPLES
When to encode or decode special HTML characters
Characters such as angle brackets and ampersands have special meaning in markup. Encoding lets you display those characters as text; decoding restores named or numeric references to the characters people can read.Encode < as < and > as > when a tutorial, message or documentation page needs to display an HTML tag without the browser interpreting it.
Encode an ampersand as &amp; and quotation marks when they could be confused with entity or attribute syntax. Encoding text is different from sanitizing untrusted HTML.
Restore named references such as &copy; and numeric references such as © when copied data should become readable Unicode text.
COMMON QUESTIONS
HTML Entity Encoder FAQ
Which characters does the HTML entity encoder escape?
It encodes ampersands, less-than and greater-than signs, double quotation marks and apostrophes, covering the reserved characters most often needed in HTML text and attributes.
Can it decode numeric HTML entities?
Yes. The browser decoder supports common named entities as well as decimal and hexadecimal numeric character references.