HTML Entity Encoder/Decoder

Paste HTML or plain text, choose encode or decode, and copy the result. Handy when building snippets, templates, or CMS content that must display characters literally.

Formula
encode: & → &amp;, < → &lt;, > → &gt;, " → &quot;, apostrophe → &#39;

FAQ

Which characters should be HTML-encoded?
At minimum encode the ampersand and the angle brackets, plus double quotes inside attributes; named entities and numeric codes also cover accented and symbolic characters.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. About MateCalc.

Related Calculators