Encode text to HTML entities or decode entities back to plain text, right in your browser.
No comments yet. Be the first!
The HTML Entity Encoder/Decoder converts between plain text and HTML entities (named, decimal, hexadecimal) entirely in your browser.
Yes, it is safe. Decoded output is always rendered as plain text; this tool never uses dangerouslySetInnerHTML or any other way to inject decoded content as live HTML.
"Encode all" treats an existing & as plain text and encodes it again; "Preserve valid entities" recognizes and keeps entities this tool can safely decode, encoding only the rest.
Named entities (e.g. &), decimal numeric entities (A), and hex numeric entities (A).
Decoded output is always shown as plain text — it is never executed or injected as live HTML, so it is safe to paste untrusted content here. Everything runs locally in your browser.