HTML Entity Encoder / Decoder

Encode text to HTML entities or decode HTML entities back to text.

Processed on your device. Files are not uploaded

How to encode HTML entities

  1. Paste your text

    Paste or type your text into the box.

  2. Choose the direction

    Encode entities, or decode them.

  3. Copy the result

    Copy the result, or use it straight away.

When to use HTML Entity Encoder / Decoder

You want to show code or a snippet containing < and & on a web page without the browser reading it as HTML.

A feed or template is full of &amp; and &lt; codes, and you want readable text.

Tips for a better HTML Entity Encoder / Decoder result

Choose encode or decode, paste the text, and copy the result.

Encode user-supplied text before placing it into markup, to avoid broken pages.

HTML Entity Encoder / Decoder: limits and what to check

Encoding turns characters such as < and & into entities, so they show as text and are not read as markup.

To remove HTML tags entirely, use the HTML to text converter.

About HTML Entity Encoder / Decoder

Turn characters such as < and & into HTML entities so they show as text on a page, or decode entities back to normal characters.

FAQs

Why encode entities?

So characters like < and & are shown as text and not read as HTML.

Can I strip HTML entirely?

Use HTML to Text Converter.

Related tools