HTML Entity Encoder & Decoder
Escape or unescape HTML special characters. Free, private and instant.
How to use the HTML Entity Encoder & Decoder
- Paste text or HTML into the box and choose Encode or Decode.
- The result appears as you type, with Copy and Download .txt buttons.
Example
Worked example (fictional text, tested in the browser)
- Encode: <b>Tom & "Jerry"</b> it's becomes <b>Tom & "Jerry"</b> it's
- Decode: <p>Fish & chips © 'ok'</p> becomes <p>Fish & chips © 'ok'</p>
- Trap: Decoding <b>bold</b> <i> returns bold <i>: real tags are stripped, entities are decoded
Limitations
- Encode escapes only & < > double quotes and single quotes. Other characters such as accented letters are left as they are.
- Decode uses your browser’s HTML parser, so any real tags in the input are removed instead of kept as text. Paste only the encoded text.
- Encoding helps display text safely, but it is not a complete defence against script injection in every context.
About this tool
Convert characters such as < > & and quotes to HTML entities, or decode entities back to text.
HTML Entity Encoder & Decoder is part of ToolStack Hub's Developer Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Frequently asked questions
Is the HTML Entity Encoder & Decoder free?
Yes. HTML Entity Encoder & Decoder is completely free with no sign-up, limits or watermarks.
Is my data private when I use the HTML Entity Encoder & Decoder?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.