HTML Entities
Two-way conversion between raw characters and HTML entities. Encode angle brackets and ampersands before embedding code samples in a page, or paste in < soup and get readable text back.
100% private — everything runs in your browser, nothing is ever uploaded.
How to use it
- Paste your text.
- Pick Encode or Decode; both run instantly.
- Copy the result from the output box.
Why it stays private
Code snippets often contain exactly the characters that break HTML. Escaping is a string operation performed in your tab — the snippet never leaves your machine.
Questions
Which characters get encoded?
The five XML-critical ones — <, >, &, " and ' — plus non-breaking spaces. That is enough to make any text safe inside an HTML document without bloating it with numeric entities for every accented letter.
Can it decode numeric entities like ?
Yes. Decimal ( ) and hexadecimal ( ) numeric references and the common named entities are all decoded.
Why did my text turn into Chinese characters?
That is what the entities decoded to. 中 is the character 中 — numeric references work for the whole Unicode range.