100% local processing — your files and data never leave this browser. No uploads, no server storage.

OnboxTools

Escape HTML Online — Decode Entities Free

Free · Browser-only · No upload

HTML Entity Encoder & Decoder

Escape html online before dropping user text into a template, or decode html entities to read what CMS and API responses actually contain. This html entity encoder online mirrors the decode html entities javascript workflow in one private tab — no PHP runtime required for a quick check.

Conversion mode

Escape level

Raw text / HTML
Escaped HTML
Active modeEscape
Escape levelBasic
Size change

HTML entities explained

What are HTML entities?

Entities are escape sequences that represent characters in HTML. Instead of a raw < that starts a tag, you write &lt; so the browser shows a literal less-than sign. Named entities include &amp; and  ; numeric forms look like © or ©.

Decode html entities javascript online

Front-end developers often need to preview escaped strings from APIs or databases. Running decode html entities javascript online here uses the same browser primitive many snippets rely on: assign entities to a hidden textarea’s innerHTML, read value. That is the practical meaning of html entities decode online for debugging — not executing arbitrary HTML in your page.

Compared to PHP html decode

PHP’s html_entity_decode() runs server-side with PHP’s entity map and flags. This tool is a client-side companion when you do not have PHP handy, or when you want to verify what a string will look like after decode before shipping JavaScript that processes it. It does not replace PHP in production pipelines — it helps you inspect strings faster.

Security note

Decoding turns entities back into real characters — including <script> if they were present before encoding. Never inject decoded output into innerHTML on a live site without sanitizing. Use escape when displaying untrusted text; use decode for inspection and trusted pipelines only.

More Text Utilities

🏷️
Barcode Generator
🧬
Base64 Encoder
🔡
Case Converter
🎨
Color Picker
Cron Generator
🎨
CSS Minifier
🔎
Find and Replace
🛡️
HTML Entity Encoder
📰
HTML Minifier
📋
Markdown Preview
📱
QR Code Generator
🎲
Random Number
🔍
Regex Tester
↩️
Reverse Text
✂️
Split String
🔁
Text Repeater
📖
Text Viewer
🕐
Unix Timestamp
🔗
URL Encoder
🌐
UTF-8 Encoder
📊
Word Counter

Browse by category

Common questions

HTML entity encoder FAQ

Encoding, JavaScript decode patterns, and how this differs from PHP.

How do I decode HTML entities in JavaScript without a library?

A common pattern is assigning the entity string to a textarea’s innerHTML and reading .value — which is what this tool uses. It handles named entities (&amp;), decimal (&#39;), and hex (&#x27;) forms. Always sanitize before inserting decoded HTML into the live DOM to avoid XSS.

Is this the same as PHP html_entity_decode?

PHP’s html_entity_decode runs on the server with PHP’s entity table. This page is a client-side alternative for quick inspection and debugging — useful when you want html entities decode online without deploying PHP or pasting data to a remote API.

When should I escape HTML instead of decode it?

Escape when you want to display user content as text inside HTML (show literal <tags> on screen). Decode when you received already-escaped markup and need to read the original characters — for example reviewing email templates or CMS output.

What is the difference between basic and full escape?

Basic escapes only & < > " '. Full escape also converts non-ASCII and control characters to numeric entities (&#…;), which is safer when you embed strings in HTML attributes or legacy templates.

Can I paste a full HTML document?

Yes for decoding fragments and entity strings. If you paste an entire page, you may get extra whitespace from structural tags. For production parsing, use a proper parser in your app — this tool is for strings and snippets.

Is my markup sent to a server?

No. Escape and decode run entirely in your browser. Clear the editor when finished if you are working with sensitive template content.