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.Details

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.