HTML Entity Encoder and Decoder
Convert between characters and the entities used inside HTML.
Encoding always escapes & < > " and '. Decoding reads number codes and common names such as © …. An unknown name stays as written.
Your result
Type text or HTML and the result appears here.
How to use it
- Choose encode or decode.
- Paste the text or press Try a sample.
- Copy the result.
Examples
- A tag<b class="x"> <b class="x">
- A common name© 2026 © 2026
- A number code😀 😀
Tool details and privacy
Turn <p> into <p> to show code on a page, or decode &quot; and friends to read the text. You can also turn Arabic letters and emoji into number codes.
Showing HTML code inside a page, or reading text that an editor escaped, needs this conversion.
Options
- Encoding always escapes & < > " and '.
- An optional switch turns every non-English character into &#x…;.
- Decoding reads decimal and hex codes and about forty common names.
Limits
- An unknown name stays as written.
- The result is shown as text and never inserted into the page as HTML.
Privacy
What you type stays in your browser. Nothing is uploaded or saved on the server.
Questions
Do I need to encode Arabic?
Usually not; UTF-8 pages show it as is. Turn the switch on only when asked to.
What is the difference between ' and '?
Both are an apostrophe; encoding here uses ' because it works everywhere.
Is the HTML run?
No.
Is the text uploaded?
No.