HTML Entity Encode/Decode
Rendered preview
Rendered in a sandboxed frame — scripts and links are disabled.
HTML entities let you safely include characters like <, >, & and quotes inside HTML markup without them being mistaken for tags or attributes. This tool encodes plain text into entity-escaped HTML, or decodes entity-escaped text (named or numeric entities) back into plain characters, with an optional sandboxed preview of the rendered result.
Frequently asked questions
Which characters get encoded?
Encoding targets the five characters that are special in HTML: &, <, >, " and '. These become &, <, >, ", and ' respectively.
Does decoding support numeric entities too?
Yes — decoding uses the browser's own HTML parser, so it correctly handles named entities (like &) as well as numeric entities (like & or &).
Is the preview safe to use with untrusted HTML?
The preview renders inside a fully sandboxed iframe with scripts, forms, and same-origin access disabled, so pasted markup can't execute JavaScript or affect the rest of the page.