Encoding Tool
HTML Encode / Decode
Encode HTML entities and decode escaped HTML text.
HTML Encode / Decode
Encode HTML entities or decode escaped HTML text.
Overview
Convert special HTML characters to entities and decode entity strings back to readable text.
Examples
Encode HTML snippet
Input
<div>Hello & welcome</div>Output
<div>Hello & welcome</div>Decode HTML entities
Input
<h1>Title</h1>Output
<h1>Title</h1>Use cases
- Escape HTML before display in docs.
- Decode entity-heavy text from logs.
- Prepare safe snippets for templates.
FAQ
Does this sanitize unsafe HTML?
No. It only encodes/decodes entities.
Can I decode numeric entities?
Common entities are decoded by browser parsing.
Is conversion local?
Yes. Everything runs client-side.
Will tags execute after decode?
Output is plain text unless you render it as HTML elsewhere.