HTML Entity Encoder / Decoder
Encode text to HTML entities, or decode HTML entities back to plain text.
Runs 100% in your browser•Nothing is uploaded to a server•Free forever
Input
Copied!
About this HTML entity encoder
Hit Encode to convert &, <, >, ", and ' to their named HTML entities and every other non-ASCII character to a numeric entity, so the result is safe to drop directly into HTML markup. Hit Decode to reverse the process — it understands numeric entities (decimal and hex) plus common named entities (amp, lt, gt, quot, apos, nbsp, mdash, and more). Anything it doesn't recognize as a valid entity is left untouched rather than mangled. Runs entirely in your browser — nothing you paste is uploaded.