🔣

HTML Entity Encoder/Decoder

Encode reserved characters to HTML entities, or decode them back

HTML entities

Encode reserved characters like < > & " ' into HTML entities so they display literally instead of being parsed as markup, or decode entities back into plain text. Handles named and numeric (decimal and hex) entities. Runs locally in your browser.

FAQ

Which characters get encoded?

The five that matter for HTML safety: &, <, >, ", and '. Others display fine as-is.

Does decoding handle numeric entities?

Yes — both decimal (&#169;) and hexadecimal (&#xA9;) forms are decoded, alongside common named entities.

Why encode entities?

To show code samples or user input on a page without the browser interpreting it as tags, and to prevent broken markup or injection.