Skip to content

HTML entity encoder & decoder

Escape text for safe use in HTML — or decode entities back to characters — live, on your device.

Text / HTML

Encoded

Escapes & < > " ' so text is safe inside HTML, and decodes entities back to characters — all in your browser.

Runs in your browser. Files are never uploaded — you can go offline after the page loads.

How to use the HTML Entity Encoder

  1. Paste text or encoded HTML.
  2. Choose encode or decode.
  3. Copy the result.

Easy to use

Drop files, pick options, download. Whole folders at once, no signup, no daily limit.

Best quality

The same engines the professionals use — SVGO, resvg, MozJPEG, libwebp, libavif — compiled to run in your browser.

Private & secure

Files are processed on your device and never uploaded. Close the tab and nothing remains anywhere.

Escape text for HTML, or decode it back

Encoding turns characters like <, >, & and quotes into their HTML entities so they show as literal text and can’t break — or inject into — a page. Decoding does the reverse, turning entities back into the characters they represent. There’s an option to escape every non-ASCII character to a numeric entity for ASCII-only systems.

Both directions run in your browser. For URL-safe escaping instead, see URL Encode / Decode; for Base64, Base64 Encode / Decode.

Frequently asked questions

Why encode HTML entities?

To show characters like &lt; &gt; &amp; as literal text instead of markup, and to stop user input from breaking (or injecting into) a page. This is the safe-escaping step every template needs.

What does “escape all non-ASCII” do?

It converts every character above 127 (accents, emoji, symbols) to a numeric entity like &amp;#233; — useful for systems that only accept plain ASCII.

Your files never leave your device

Most online converters upload your file to a server. InfyTool ships the actual encoders to your browser as WebAssembly instead, so processing happens inside your tab — faster for batches, and nothing to delete afterwards.

  • No upload, ever. Turn off Wi-Fi after the page loads and every tool keeps working.
  • No limits. No file-size cap, no queue, no watermark, no account.
  • Runs on your CPU. Batches use several cores in parallel; nothing is throttled.

More free tools

Need icons or SVGs to start from?

InfyTool is built by the same team as these free libraries.