HTML Entity Encoder / Decoder

Encode text to HTML entities, or decode HTML entities back to plain text.

Runs 100% in your browserNothing is uploaded to a serverFree forever

JSON Formatter Base64 URL Encode/Decode Timestamp Regex Tester UUID Generator Hash Generator JWT Decoder Password Generator JSON ⇄ CSV HTML Entities

Input

Output

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.

More developer tools