712Tools

HTML Entity Encoder & Decoder

Convert special characters to HTML entities and back

πŸ”’ 100% in-browserπŸ†“ Free forever⚑ No sign-up

How it works

  1. 1
    Paste your text or HTML

    Drop text with special characters, or HTML with entities.

  2. 2
    Pick encode or decode

    Encode turns < into &lt;. Decode turns &lt; back into <.

  3. 3
    Copy the result

    Copy the escaped or unescaped output with one click.

About HTML Entity Encoder & Decoder

Free online HTML entity encoder and decoder. Convert <, >, &, quotes, and other special characters to their HTML entity form (&lt;, &gt;, &amp;) or decode entities back to plain text. Supports named entities and numeric references. HTML Entity Encoder & Decoder on 712 Tools runs entirely inside your browser using modern JavaScript APIs β€” no server ever sees your data. That means instant results, complete privacy, and no upload limits.

Whether you need to convert special characters to html entities and back for a debugging session, a quick sanity check, or a production incident, this tool is free to use as many times as you need. There are no watermarks, no sign-up, and no ads inside the tool itself.

Frequently asked questions

Which characters get encoded?

The five HTML5 essentials β€” <, >, &, ", ' β€” plus non-breaking space and any character above U+007F on request.

Does it handle numeric entities like &#8212;?

Yes. Both named entities (&mdash;) and decimal/hex numeric references (&#8212; / &#x2014;) decode correctly.

Should I encode ' as &apos;?

&apos; is HTML5-valid but not HTML4 β€” some older mail clients render it literally. This tool encodes to &#39; instead for maximum compatibility.

Is my text uploaded?

No. All encoding runs locally in your browser.