Encode five HTML special characters, or decode six common named entities and decimal or hexadecimal character references, locally in your browser.
Output
<section title="Tom & Jerry">It's ok</section>
Common tasks
html entity encoder
html entity decoder
html escape
decode numeric entities
html entity encoder decoder online
free html entity encoder decoder
html entity encoder decoder no upload
browser local html entity encoder decoder
Quick answer
Encode converts &, <, >, double quotes and apostrophes to entities. Decode recognizes amp, lt, gt, quot, apos and nbsp, plus decimal and lowercase #x hexadecimal references ending in a semicolon.
How to use
1. Select Encode or DecodeUse Encode to display markup as text, or Decode to inspect supported entity references.
2. Paste the textThe result updates immediately. The output is shown as text, not executed as HTML.
3. Review and copyCheck the target context before copying. Entity conversion alone is not a general HTML sanitizer.
&, <, >, ", and ' — the five characters that can break HTML when written literally.
Does it support numeric entities?
Encode converts &, <, >, double quotes and apostrophes to entities. Decode recognizes amp, lt, gt, quot, apos and nbsp, plus decimal and lowercase #x hexadecimal references ending in a semicolon.
Is my input uploaded anywhere?
No. Encoding and decoding both run entirely in your browser.