Common HTML Entities
Click any entity to copy the code
Encode special characters to HTML entities or decode them back.
Click any entity to copy the code
HTML entities let you show characters that would otherwise be interpreted as markup — like <, >, &, and quotes — safely inside a web page. This tool encodes text into entities and decodes entities back to plain characters, instantly and in your browser.
It's a staple for anyone writing HTML by hand, pasting code into a page, or debugging why a snippet renders wrong.
Encoding replaces reserved and non-ASCII characters with their named or numeric entity equivalents (so < becomes < and © becomes ©), which stops browsers from mistaking content for tags. Decoding turns those entities back into the characters they represent.
Because it runs locally, you can safely encode code samples or user-supplied text before embedding them, without sending anything to a server — the same escaping that prevents display bugs also helps you avoid injecting raw markup.
Encoding '<div class="x">' yields '<div class="x">', which you can paste into a page to show the tag literally instead of rendering it — exactly what you need when documenting HTML.
Whenever you want to display characters like <, >, or & as text rather than have the browser treat them as markup.
The tool uses standard entities; both named and numeric forms decode correctly.
No — encoding and decoding happen entirely in your browser.
Yes — non-ASCII characters encode to their numeric entities and back.
Yes — 25 languages, free to use.