UTILS.
100% in-browser
&

HTML Entity Encoder

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

output

About this tool

Escape special and non-ASCII characters into HTML entities so they display literally in a web page, or decode named and numeric entities back into plain text. Useful when showing code or symbols inside HTML.

Frequently asked questions

Why escape characters like < and &?
In HTML these have special meaning. Escaping them to &lt; and &amp; makes them render as literal characters instead of markup.
Does it decode named entities?
Yes. Both numeric (&#233;) and named (&eacute;) entities decode back to the original character.

More tools