sangsen

HTML Encoder/Decoder

Escape text for safe embedding in HTML, or decode HTML entities back to text.

Output

Result appears here.

How it works

Escape converts &, <, >, and " into their named HTML entities, and ' into the numeric &#39; (valid in every HTML version), so text can be safely embedded in HTML. Decode reverses all five, plus &apos; and numeric character references (&#65; and &#x41;); an entity it doesn't recognize is left as literal text rather than guessed at. Both run entirely in your browser.

Example

Escape
<b>Bold & "quoted"</b>&lt;b&gt;Bold &amp; &quot;quoted&quot;&lt;/b&gt;

FAQ

Is my text uploaded anywhere?
No. Escaping and decoding happen entirely in your browser — nothing you paste ever leaves your machine.
What happens if I decode something that is not a real HTML entity?
It is left unchanged as literal text rather than an error — this tool does not guess at unrecognized entities.
Does decode support numeric character references?
Yes — both decimal (&#65;) and hexadecimal (&#x41;) references decode to their character.