← All tools

HTML Entity Encoder & Decoder

Encode HTML-sensitive characters or decode named and numeric entities into text.

Loading HTML Entity Encoder & Decoder…

Using HTML Entity Encoder & Decoder

Which inputs does HTML Entity Encoder & Decoder support?

Choose Encode or Decode and paste a text string. Encoded characters include &, <, >, quotation marks, and apostrophes.

What is an example of the result?

In Encode mode, A & B becomes A &amp; B; Decode restores the ampersand.

Which limits or failure conditions matter?

The result is shown as text and is not executed as HTML. Entity encoding is not a substitute for sanitizing untrusted HTML markup.

Where is this task processed?

Your input is processed in this browser. Application libraries may be downloaded on first use; the entered content is not sent to a conversion service.