HTML Entity Encoder

Encode and decode HTML entities

FreeNo sign-upDeveloper Tools →

HTML Entity Encoder replaces the characters that have special meaning in HTML with their entity codes, so the less-than sign becomes <, the ampersand becomes & and quotes become ". Decode mode turns entities back into characters.

Encoding is what stops text from being interpreted as markup. Use it when you want to show code on a web page, or when inserting user-supplied text into HTML. A reference list of common entities sits below the tool for quick lookup.

Advertisement

How to use HTML Entity Encoder

1

Choose Encode or Decode

Select the mode.

2

Enter the text

The converted version appears below.

3

Copy

Paste it into your HTML.

Use Cases

  • Displaying a code sample in a blog post
  • Preparing text for an HTML email template
  • Decoding entities in scraped content

Frequently Asked Questions