All tools

HTML Encoder / Decoder

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

Runs locally in your browser

About this tool

Escape reserved HTML characters (&, <, >, ", ') so text can be safely embedded inside HTML markup, or decode an already-escaped string back to readable text.

Decoding uses the browser's own HTML parser, so every standard named entity (like &nbsp; or &copy;) is handled correctly, not just the five basic ones.

Frequently asked questions

By default: & < > " ' — the characters that are structurally meaningful in HTML. An option lets you also convert every non-ASCII character to a numeric entity.