HTML Entities Encoder & Decoder
Escape special characters into safe HTML entities — or decode named and numeric entities back to plain text — instantly.
How it works
Browsers treat characters like <, > and & as markup. To show them as literal text — or to keep your HTML valid — those characters must be written as entities.
Pick a mode
Choose Encode to turn text into HTML-safe entities, or Decode to turn entities back into readable text.
Type or paste
Your result updates live as you type — no button to press. An ampersand becomes &, a less-than sign becomes <.
Copy it
Hit Copy to grab the result and drop it straight into your HTML, template or CMS.
Named or numeric entities?
Encoding always escapes the five markup-sensitive characters as named entities — &, <, >, " and ' (the apostrophe). With the option enabled, every non-ASCII character (accented letters, symbols, emoji) is also written as a numeric entity like é, which is the most portable form across old email clients and legacy encodings.
How does decoding work?
Decoding is handed to the browser's own HTML parser, so it understands the full set of named entities (©, —, ♥ and hundreds more) as well as decimal (©) and hexadecimal (©) references — exactly the way a real web page would render them.
Private by design. Everything happens right here in your browser. Nothing you type is ever uploaded — we never see it.
Frequently Asked Questions
What are HTML entities and why do I need them? ▼
<, > and & as markup. To show them as literal text — or to keep your HTML valid — those characters must be written as entities such as <.What's the difference between named and numeric entities? ▼
& for an ampersand. Numeric entities use a code number, like é for é. Numeric entities are the most portable form across older email clients and legacy encodings.Which characters get encoded? ▼
&, <, >, quotes and apostrophes — are always escaped. With the extra option on, accented letters, symbols and emoji are also written as numeric entities.