HTML Entity Encoder

Encode characters to HTML entities and decode entities back to characters

Encode

Decode

Common HTML Entity Reference

CharacterNameEntityNumeric

Frequently Asked Questions

What are HTML entities?
HTML entities are special codes used to display reserved characters in HTML. For example, < displays as < and & displays as &.
Why do I need to encode HTML?
Characters like <, >, and & have special meaning in HTML. Encoding them prevents the browser from interpreting them as markup.
What's the difference between named and numeric entities?
Named entities use a name like & while numeric entities use a decimal (&) or hex (&) code point. Named entities are more readable.