Free browser-based tool

HTML Entity Encoder and Decoder

Safely display markup characters as text or convert entities back to readable values.

Advertisement

HTML Entity Encoder and Decoder

What is this tool?

HTML entities represent characters such as less-than signs, ampersands, and quotation marks without treating them as markup.

How to use it

Encoding <p> produces entity text that a browser can display instead of interpreting as an element.

Privacy

This tool is designed to process your input locally in the browser. Avoid entering passwords, private keys, or other sensitive production data into any online tool.

Frequently asked questions

Why encode HTML characters?

Encoding helps display markup as text and reduces accidental HTML interpretation.

Does this sanitize unsafe HTML?

No. Entity encoding is not a complete HTML sanitization solution.

More developer tools