HTML Entity Encode / Decode
Convert special characters to HTML entities and back.
Tool
Was this tool useful?
About this tool
About HTML Entity Encode / Decode
Show code samples safely in a web page or turn entities back into normal text.
How it works
Encode converts & < > " ' to & < > " '. An option also converts all non-ASCII characters to numeric entities.
Example
<b>Hi</b> → <b>Hi</b>
How to use this tool
- Paste text or HTML.
- Click Encode or Decode.
- Copy the result.
Frequently asked questions
Does decoding run scripts?
No. Decoding only reads entity text and never runs code.
What are numeric entities?
Codes like © for ©. They work in any character encoding.
Does the HTML Entity Encode / Decode send my data to a server?
No. The HTML Entity Encode / Decode runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.