HTML entity encode / decode

Escape HTML special characters to entities, or decode entities back to text — entirely in your browser.

Tool processing runs in your browser — your pastes/files are not uploaded to our servers for processing. Ads (if shown) load separately and do not receive your tool inputs.Advertising · Details

Quick answer

HTML entity encoding replaces <, >, &, and " with &lt;, &gt;, &amp;, &quot; so text renders literally instead of as markup. TryDevSnip encodes and decodes it in your browser — not uploaded to our servers for processing.

Mode

Frequently asked questions

What is HTML entity encoding?

It replaces characters that have special meaning in HTML — like <, >, &, and " — with entity codes such as &lt;, &gt;, &amp;, and &quot;, so they display as text instead of being parsed as markup.

When do I need to escape HTML?

Whenever you put untrusted or literal text into a page — to prevent broken markup and cross-site scripting. Encoding user input before rendering is a core defence.

How do I decode HTML entities?

Switch to Decode and paste text with entities — &lt;div&gt; becomes <div> and &amp; becomes &.

Is my input uploaded?

No. TryDevSnip encodes and decodes in your browser. Nothing you paste is uploaded to our servers for processing.

TryDevSnip