Decode ” and ' HTML Entities on Mac (Bytepliers)
Turn ”, ' and & back into real characters offline on a Mac, and tell entities apart from backslash escapes and ’ garbling.
Updated 5 min read
On this page
You pasted text from an RSS feed, a scraper or an HTML attachment and quotes and apostrophes show up as codes:
He said ”fine” and Let's go & seeHere ” is a closing curly double quote, ' is an apostrophe and & is an ampersand. Below: why they appear, how to decode them, and how to spot the two look-alike problems that need another tool.
Why it happens
HTML reserves characters like <, > and &, and many pipelines encode other characters too so they survive any encoding. The most common sources:
- RSS and Atom feeds. Feed titles and descriptions are often entity-encoded, and a parser that returns the raw string hands you
”as is. - Scraped HTML. Pulling text from a page source without running it through a browser DOM leaves entities in place.
- Double encoding. A system encodes already-encoded text, giving
&#8221;. One decode turns it into”, and a second finishes the job. - Deliberately encoded HTML. Some HTML files, including suspicious attachments, are entity-encoded so they can't be read at a glance. Many online decoders render the page instead of showing the text, which is a reason to decode locally.
Three different things get confused with each other:
| What you see | What it is | Fix |
|---|---|---|
”, ”, & | HTML entity | HTML Entities tool, Decode |
Let\'s, \", \n | Backslash escape | Escape / Unescape tool, Unescape |
’, “ | Mojibake (encoding mismatch) | Re-read the source as UTF-8 |
Decode HTML entities in Bytepliers
- Copy the text containing
”,',&or similar. - Open Bytepliers and choose HTML Entities in the Encode group of the sidebar. Or press ⌘K and type "html entities".
- Set the mode to Decode.
- Paste into the input pane (⌘V, or Paste from Clipboard).
- Copy the result from the output pane (⇧⌘C).
The tool decodes about 250 named entities (&, ", ©), decimal references (”, ') and hex references (”). A reference it doesn't recognize is left as is, so a leftover &something; is not one of the known names.
| You paste | You get |
|---|---|
” | ” |
' | ' |
” | ” |
& | & |
Decode straight from the clipboard
If you do this often, skip the window.
Quick Panel
Press ⌥⌘B in any app, choose HTML Decode from the Transform menu, then press ⏎ to copy the result. Auto-detect also decodes entities when it recognizes them.
Detect & Replace Clipboard
Press ⌥⇧⌘B. If Bytepliers recognizes the clipboard as HTML entities, it replaces the clipboard with the decoded text. If it says "No confident match", use the HTML Entities tool directly. Undo with Tools ▸ Restore Previous Clipboard.
Command line
After installing the command from Settings ▸ Integrations, this decodes the clipboard and puts the result back:
pbpaste | bytepliers html-decode | pbcopyIt reads the clipboard, decodes entities and writes the result to the clipboard. Nothing to undo; copy the original again if needed.
Fix double-encoded text
If the output still contains entities, such as ” after decoding &#8221;, the text was encoded twice. Copy the output, paste it into the input pane and run Decode again. Repeat until nothing changes.
Entity-encoded HTML files
The HTML Entities tool only produces text. It never renders the page, so an encoded HTML file stays inert while you read it. To tidy the decoded markup, open it in HTML / CSS / JS and choose Beautify.
Unescape backslashes separately
A string like Let\'s be honest has a backslash escape, not an entity. Use the Escape / Unescape tool, set to Unescape, with the Backslash (JSON / C / Swift) style.
When both kinds appear, as in Let\'s, unescape the backslashes first, then decode the entities, checking the output after each step. To do both in one go, add Backslash Unescape and HTML Decode as steps in Pipelines and save the result as a recipe.
Garbled characters like ’
Text such as we’re is mojibake: UTF-8 bytes were read as a single-byte encoding such as Windows-1252. It is an encoding problem, not entities, and the HTML Entities tool does not fix it. Re-fetch or re-save the source as UTF-8, or tell your scraper or feed parser to read the response as UTF-8.
You can confirm what you have by pasting the text into String Inspector, which lists code points and UTF-8 bytes per character. If you see the three characters â, € and ™ where you expected one apostrophe, it is mojibake.
Checklist before you try again
- The text really contains
&…;references (not backslashes orâ€). - The mode is Decode, not Encode.
- The input is under 2 MB for live conversion.
- For
&#…;patterns, you decoded a second time. - For mixed text, you unescaped backslashes first.
Limits
- Live conversion refuses input over 2 MB ("Input is … — the limit for live conversion is 2 MB.").
- Quick Panel and Detect & Replace work on clipboard text up to 1,000,000 bytes.
- The Quick Panel result display is cut at 20 KB / 400 lines, but ⏎ copies everything.
If nothing works
Most failures are a named entity outside the supported list (try its numeric form), a source with the wrong encoding, or clipboard text that Detect & Replace doesn't recognize. If the tool itself misbehaves, contact support through the support page and include the details below.
Subject: Bytepliers HTML Entities decode problem
Bytepliers version: (Bytepliers menu > About Bytepliers)
macOS version:
Tool and mode: HTML Entities, Decode
Sample input (a short, non-sensitive snippet):
Expected output:
Actual output:
Exact error message, if any:
Steps already tried: decoded twice, unescaped backslashes firstCommon questions
Why does Detect & Replace say "No confident match"?
The clipboard didn't look clearly like entity-encoded text, for example when there is only one short entity. Open the HTML Entities tool and decode manually.
Does it decode hex entities like ”?
Yes. Decimal (”) and hex (”) references both decode, as do the roughly 250 named entities.
Can I encode text into entities instead?
Yes. Switch the same tool to Encode. The Essential set covers & < > " '; Named and All non-ASCII also convert characters like © and é.
Is there a free way to do this?
Yes: browsers decode entities when they render a page, and JavaScript, PowerShell and Lua all have decoding functions or libraries. Bytepliers is part of MacSuite and runs free for 7 days, which is useful if you want a paste-and-copy tool that stays offline.