MISTOOLS

HTML Entity Encoder Decoder

Encode special characters as HTML entities, or decode entities back into text.

How it works

  1. Choose Encode or Decode.
  2. Type or paste your text.
  3. Copy the result.

About this tool

HTML entities let you show characters that have a special meaning in HTML, such as the less-than sign, or characters that are hard to type, such as the copyright sign. Encoding text before putting it in a page also helps prevent code from being run by mistake.

Choose the safe default that encodes only the five important characters, add named entities for common symbols, or turn every non-English character into a numeric entity. Decoding turns entities back into plain text without running any HTML code.

Questions

Which characters must be encoded in HTML?

The ampersand, less-than and greater-than signs, and quotes inside attribute values.

What is the difference between named and numeric entities?

Named ones use a word, like ©. Numeric ones use the character number, like ©.

Does decoding run scripts?

No. Only entities are decoded. Tags are left as plain text.

More tools

More free Developer tools