What are HTML entities?
An HTML entity is a code that stands for a character, written between an ampersand and a semicolon. For example, < means the less-than sign, & means an ampersand and é means é. Entities let you show characters that HTML would otherwise treat as part of its own markup.
The five characters that matter most are & < > and the two quote marks. If you put raw text containing them into a page, the browser may read them as code. Encoding turns them into entities so they display as plain text. Decoding does the opposite. This tool also supports named entities and numeric ones such as é and é.
How to use the HTML Entities Encode / Decode
- Paste your text into the box.
- Choose Encode or Decode.
- When encoding, pick how much to convert, from only the markup characters up to every non-ASCII character.
- Copy the result.