About the HTML Entity Encoder / Decoder
A free, safe, bidirectional HTML entity tool that runs entirely in your browser.
What it is
HTML entities are special codes used to represent characters that would otherwise be interpreted as HTML markup, or characters that are difficult to type directly. For example, < represents a literal less-than sign, & represents an ampersand, and © represents the © symbol. Entities come in three forms: named (&), decimal (&), and hexadecimal (&).
The HTML Entity Encoder / Decoder converts both ways, live. Paste plain text and it instantly encodes the characters that need escaping. Paste a string of HTML entities and it decodes them back to readable text. No button presses needed — just type or paste and the result appears immediately.
Features
Two-way conversion
Edit the plain text side to encode, or the entities side to decode — whichever you type into updates the other instantly.
Named, decimal & hex
Choose your entity output format: named entities like ©, decimal like ©, or hex like ©. Decode handles all three automatically.
Encode scope options
Encode only the five HTML-unsafe characters (&, <, >, ", ') by default, or switch to encoding all non-ASCII characters for maximum compatibility.
Full Unicode support
Emoji, accented characters, CJK ideographs, and other non-Latin text all round-trip correctly — nothing is mangled or lost.
Safe decoding
Decoding uses a lookup table and String.fromCodePoint() — it never writes to innerHTML, so pasted markup is never rendered or executed.
Fully client-side
Everything runs in your browser. No data is sent to any server, so you can safely encode sensitive strings like tokens, content, or private text.