HTML Encoder / Decoder — Entities Escape & Unescape

Escape HTML for safe display, or decode entities back to characters — the swap button flips direction.

Quick answer: Free HTML encoder/decoder: escape <, >, &, quotes to entities and back — instant, bidirectional, offline.

How to use

  1. Paste HTML or entities.
  2. Convert live; swap to decode.
  3. Copy the output.

About this tool

Show code samples on webpages without breaking them, or decode 'messy' exports — both directions, one swap button.

FAQ

Which entities?
& < > " ' plus numeric entities on decode.
XSS relevance?
Escaping user input before display is core XSS defence — use this before embedding.
Bidirectional?
Yes — the swap button flips encode/decode.
Unicode safe?
Yes — only the five dangerous characters are touched on encode.
Bulk content?
Paste whole files — runs locally.
Offline?
Yes.

Questions people ask about HTML Encoder / Decoder

Collected from live search results on 31 Aug 2026 (search-engine "people also ask" boxes plus the questions published on ranking pages).

What is %27 in HTML encoding?
The Toolfyra HTML Encoder / Decoder runs entirely in your browser: open it, enter your input and the result appears instantly. No sign-up, no file upload, no watermark, and it works on phones as well as desktop.
What is an HTML encoder?
The Toolfyra HTML Encoder / Decoder runs entirely in your browser: open it, enter your input and the result appears instantly. No sign-up, no file upload, no watermark, and it works on phones as well as desktop.
How to add UTF-8 in HTML?
The Toolfyra HTML Encoder / Decoder runs entirely in your browser: open it, enter your input and the result appears instantly. No sign-up, no file upload, no watermark, and it works on phones as well as desktop.
How do I convert a string to URL encoding?
The Toolfyra HTML Encoder / Decoder runs entirely in your browser: open it, enter your input and the result appears instantly. No sign-up, no file upload, no watermark, and it works on phones as well as desktop.
What does &#39 mean in HTML?
The Toolfyra HTML Encoder / Decoder runs entirely in your browser: open it, enter your input and the result appears instantly. No sign-up, no file upload, no watermark, and it works on phones as well as desktop.
How to set UTF-8 encoding in HTML?
The Toolfyra HTML Encoder / Decoder runs entirely in your browser: open it, enter your input and the result appears instantly. No sign-up, no file upload, no watermark, and it works on phones as well as desktop.