HTML Entity Encoder & Decoder

Prepare text for safe HTML display or decode entity references back to readable text.

Conversion settings

Original text

0 characters

Not saved

Converted text

0 characters

0 characters

About this tool

Safely display reserved characters in HTML source, code samples, CMS fields, and more.

Frequently asked questions

Which characters are always encoded?

Encoding always converts &, <, and >. Quotes and non-ASCII characters are optional.

What happens to invalid entities when decoding?

Recognized entities are decoded, while unrecognized text remains unchanged.

Is my text sent to a server?

No. Conversion and storage take place only in your browser.

Related tools

Confirm how the result will be used in HTML

Encoding replaces characters that have special meaning in HTML with character references. Decoding does not execute the result as HTML. When inserting untrusted content into a page, also use the escaping method provided by your framework or template system.