ROXIE TOOLS Everyday tools, made simple

HTML Entity Encoder and Decoder

Escape the characters that break HTML markup, or decode entities such as & and   back into text. Essential when displaying user input safely.

  • Runs in your browser
  • Accepts: text, HTML
  • Produces: HTML, text
  • Free · No sign-up

Loading the tool…

How to use html entity encoder and decoder

  1. Paste the text or markup.
  2. Choose encode or decode.
  3. Copy the escaped or decoded text.

Practical examples

Showing code in a page

Encoding "<div>" produces &lt;div&gt;, which renders as text instead of an element.

Limitations to know about

  • Encoding makes text safe inside HTML text nodes. Use an attribute-specific escape for values inside attributes.

Privacy

This tool processes everything inside your browser. Nothing you paste or upload is transmitted to Roxie Tools or to any third party, and no copy of your input is stored. Closing the tab clears it.

See the privacy policy for how this site handles data.

Related tools

All developer tools

Version 1.0.0 · Last updated 2026-12-06 · Processing: local browser