HTML entity encode/decode · Guide

HTML Entities Explained

HTML entities are codes that stand in for characters. Knowing the common ones makes escaping intuitive.

Named and numeric

Entities come in named form (&, <) and numeric form (&, <). Both render the same character; named entities are easier to read.

What must be escaped

In HTML text content, & and < always need escaping; in attribute values, quotes do too. Escaping these prevents text from being misread as markup.

Frequently asked questions

Can I use this for production work?

Yes, for inspection, formatting and quick generation. Still review the output before committing it to production code or configuration.

Ready to try it?

Open the free browser-based HTML entity encode/decode and apply what you just read — no sign-up, runs locally.

Open the HTML entity encode/decode tool