HTML Encode / Decode

Escape special characters to HTML entities, or unescape entities back to readable text.

What This HTML Encoder Helps With


Use this tool to safely render raw text in HTML without breaking tags or attributes. It is useful when displaying user-generated content in templates or docs.

  • Escape reserved characters before inserting text into HTML snippets.
  • Decode entities to review stored or copied escaped content.
  • Quickly move between safe output and human-readable text.

About HTML Entities


An HTML entity is a piece of text that begins with an ampersand and ends with a semicolon. Entities represent reserved characters that would otherwise be interpreted as HTML code, as well as invisible characters such as non-breaking spaces. Every entity corresponds to a Unicode character and can be written either as a named reference or as a numeric code point.

Named and Numeric Character References

Named references use a short mnemonic assigned by the HTML standard, such as the entity name for the ampersand sign or the less-than and greater-than signs. Numeric references identify any Unicode character by its decimal or hexadecimal code point value. Both forms are recognised by all major browsers and produce identical rendered output.

Wikipedia — HTML entity