Decode action for entity expansion
HTML Decode applies a single Decode operation so you always know which version of the string is current after edits.
HTML Decode converts named and numeric entities back into plain characters so CMS exports, email archives, and API payloads become easier to read and edit, all without leaving your browser.
HTML Decode is a free online tool that reverses entity encoding: sequences like & become &, < becomes <, and numeric references such as ' become apostrophes. Content systems often emit heavily escaped HTML when exporting articles, RSS feeds, or notification templates. Developers and editors use HTML Decode to recover readable source before refactoring, diffing, or pasting into environments that expect raw characters instead of entities.
HTML Decode supports both decimal and hexadecimal numeric entities because those formats appear interchangeably in legacy data. Named entities cover the most common punctuation and symbols defined by the HTML specification. Unknown or malformed entities are preserved intentionally so you can spot data quality issues rather than silently corrupting strings.
HTML Decode is not an HTML parser: it does not build a DOM, execute scripts, or validate full documents. It operates on text, which makes it fast and predictable for focused cleanup tasks. When you need structural transformations—moving nodes, stripping tags selectively—reach for a proper parser or templating pipeline instead of expecting HTML Decode to rewrite markup trees.
HTML Decode applies a single Decode operation so you always know which version of the string is current after edits.
Decimal and hexadecimal numeric entities decode alongside common named entities, which mirrors what authors see in real CMS exports.
When HTML Decode encounters an unrecognized token, it leaves the text intact so you can search logs for the typo instead of silently deleting data.
Input and output use monospace fonts so subtle entity differences remain visible when using HTML Decode during forensic content reviews.
Copy moves decoded text to the clipboard with toast feedback, while Clear resets state for the next string in a batch cleanup.
HTML Decode never uploads pasted content, aligning with cautious handling of customer messages embedded in exports.
Named entities map short mnemonics to characters: © for the copyright sign, for non-breaking space in older content. Decimal numeric entities use &#NNN; syntax while hexadecimal uses &#xHH; for the same unicode code point in base sixteen. HTML Decode recognizes these patterns because they appear interchangeably depending on which editor or exporter produced the file.
Entities exist because HTML mixes structure with text. Without them, including a literal less-than in prose would start a tag. Encoding defers the ambiguity; decoding restores the original character when you switch contexts from HTML to plain text editing. Double decoding can accidentally turn intended literal & sequences into ampersands if you decode twice without noticing.
Browser innerHTML behavior differs from string-level decoding: browsers may normalize whitespace or implied tags. HTML Decode works at the string layer, which is predictable but means you must still validate final markup in a real DOM environment before publishing complex documents.
Input
<h1 class="hero">Welcome</h1>Output
<h1 class="hero">Welcome</h1>If your CMS will re-escape on save, decoding too early might trigger different escaping rules. Plan the pipeline so HTML Decode sits at the correct stage.
Sometimes percent-encoding and HTML entities stack. Decide which layer to decode first based on which syntax you visually observe in the string.
Batch conversions are safer when originals remain in version control so you can diff if HTML Decode revealed unexpected unicode characters.
If decoded output will become live HTML, load it in a safe preview environment to ensure no script-bearing tags appeared after entities were removed.
When HTML Decode preserves a token, log it for upstream teams so exporters can fix typos instead of every consumer working around them.
Unknown entities are preserved intentionally. Check if your source entity is valid HTML.
The numeric code may point to a different Unicode character than expected.
Feeds sometimes contain &lt; sequences. HTML Decode once reveals < so you can decide whether another decode pass is appropriate or whether the feed generator is misconfigured.
When   appears as a narrow no-break space, decoded text looks like a normal space but behaves differently in layout. HTML Decode exposes the real character so you can normalize spacing intentionally.
Older exports replace every space with non-breaking spaces. Decoding entities is only the first step; you may still need whitespace normalization after HTML Decode.
Pasting a JSON string with escaped quotes may prevent HTML Decode from seeing true entity boundaries. Strip JSON escaping first, then decode HTML entities.
HTML Decode will not balance tags or remove unsafe attributes. Use a sanitizer when structural cleanup is required, not additional decode passes.
Paste the escaped string into HTML Decode and click Decode to expand entities into characters. Copy the result once it matches your expectations. The tool is free and runs locally, which makes it convenient for quick cleanup between CMS exports.
Yes. Both decimal and hexadecimal numeric entities decode when they follow HTML rules. If a numeric reference is out of range or malformed, the tool leaves it unchanged so you can correct the source data instead of producing silent corruption.
No. HTML Decode manipulates text only and does not inject output into the live DOM as executable HTML. You should still treat decoded strings carefully before pasting them into files that will later be interpreted as HTML with script tags.
Unknown names, missing semicolons in contexts that require them, or partial copies can all prevent recognition. Fix the upstream string or compare against the HTML specification list. Preserving unknown tokens is safer than guessing.
Decoding runs locally, but customer messages may contain sensitive information once readable. Handle decoded text under your privacy policy and avoid sharing screens when PII becomes visible. The tool does not log content, yet human processes still matter.
HTML Decode expands entities to raw characters while HTML Encode performs the opposite transformation for display contexts. They address opposite directions in a content pipeline and are often used sequentially during migrations.
You can paste large strings, but HTML Decode is a text transform, not a formatter or validator. Very large documents may be easier to process with editor macros or build tooling. Use this page for focused fragments and debugging samples.
No. It only replaces entity sequences with characters. Missing closing tags or invalid attribute syntax remain after decoding and require templating or parser fixes elsewhere in your workflow.
HTML Decode is the fast way to turn entity-heavy text back into something humans can edit, review, and ship without fighting invisible character codes.