HTML Entity Encoder / Decoder

Encode or decode HTML entities safely and instantly.

Text Input

Enter text or HTML characters to encode.

About HTML Entities

HTML entities are special character representations used in HTML. They are useful when displaying characters such as angle brackets, ampersands and quotation marks safely inside HTML documents.

Encode

< → &lt;& → &amp;

Decode

&lt; → <&amp; → &

This tool runs entirely in your browser. Your data is not uploaded to a server.

About HTML Entity Encoder / Decoder

Encode special characters into HTML entities or decode HTML entities back into readable text.

How to use HTML Entity Encoder / Decoder

Choose Encode or Decode, enter your text or HTML entities, and click the conversion button. The result can be copied using the Copy button.

What are HTML Entities?

HTML entities are character representations used to display special characters in HTML. They are commonly used for characters such as less-than signs, greater-than signs, ampersands and quotation marks.

HTML Encoding and Decoding

HTML encoding converts special characters into entity representations such as &lt; and &amp;. Decoding performs the reverse operation and converts HTML entities back into their original characters.

Common HTML Entities

CharacterHTML EntityDescription
<&lt;Less-than sign
>&gt;Greater-than sign
&&amp;Ampersand
"&quot;Double quotation
'&apos;Apostrophe

Why use an HTML Entity Encoder / Decoder?

Encoding and decoding HTML entities is useful when working with HTML source code, templates, documentation, text processing and debugging. This tool provides a quick way to convert the characters without manually replacing each entity.