Developer tools

HTML entity encoder & decoder

Escape special characters or decode common HTML entities.

HTML entity encoder & decoder
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Escapes ampersands, angle brackets, quotes and apostrophes. Decodes the common named entities amp, lt, gt, quot, apos and nbsp, plus valid numeric references. It never renders the input as HTML.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Your text
<h1>Hello & welcome</h1>
Direction
Escape HTML characters

Example result

&lt;h1&gt;Hello &amp; welcome&lt;/h1&gt;