HTML Entity Encoder/Decoder

Paste text or HTML-encoded content to instantly get both the encoded and decoded versions.

Updates instantly as you type

01 / Fast steps

  1. Paste your text.
  2. Read the encoded and decoded results instantly, updated as you type.

02 / Best for

  • Escaping special characters before pasting text into HTML or a CMS.
  • Decoding HTML entities copied from a web page or an API response.
  • Preparing user-generated content for safe display on a web page.

03 / Why here

  • Updates instantly as you type, no need to click run.
  • Gives you both directions at once, no need to guess which one you need.
  • Runs entirely in your browser.

04 / Keep in mind

  • Covers the common named entities (&, <, >, ", ',  ) plus numeric and hex entities, not the full historical HTML entity list.

Good to know

Questions & answers

01

Which characters get encoded?

The characters that are special in HTML: &, <, >, " and '.

02

Does decoding support numeric entities like &#39;?

Yes, both decimal (&#39;) and hexadecimal (&#x27;) numeric entities are decoded, alongside the common named entities.

03

Is HTML Entity Encoder/Decoder free to use?

Yes, HTML Entity Encoder/Decoder is completely free, with no sign-up and no usage limits. It runs entirely in your browser, so your data never leaves your device.