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
Frequently asked questions
What is HTML entity encoding?
It replaces characters that have special meaning in HTML — like <, >, &, and " — with entity codes such as <, >, &, and ", 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 — <div> becomes <div> and & becomes &.
Is my input uploaded?
No. TryDevSnip encodes and decodes in your browser. Nothing you paste is uploaded to our servers for processing.