Help interpreting Terminal after ClickFix: decode base64 safely
Help interpreting Terminal after ClickFix? Decode the base64 command a website told you to paste as plain text on your Mac, without running it.
TroubleshootingUpdated 7 min read
On this page
"Help interpreting Terminal after ClickFix" is how people usually phrase this. A web page (a fake "verify you are human" check, a fake download, a "SafeLink" page) told you to paste a command into Terminal, and the command contains a long base64 string. Base64 is an encoding, not encryption. You can turn it back into plain text and read exactly what it would have done.
Why these commands are base64-wrapped
The decoded text is the real command, and base64 hides it from a quick glance. A typical ClickFix line has three parts:
- A base64 string.
- A decode step (
base64 -Dorbase64 --decode). - A pipe into a shell (
| bash,| sh,| zsh) or aneval.
Parts 1 and 2 are harmless on their own. Part 3 is what executes the result. So you do parts 1 and 2 yourself and stop before part 3.
Apple has added protections against this on newer systems. Apple's security guide says that on a Mac with macOS 26.4 or later, a warning prompt appears when a user pastes text into Terminal from a common attack vector application, such as web browsers and messaging apps. Apple also says network artifacts associated with pasted commands are checked against its Safe Browsing Service, and a known malicious source gets the process blocked. These checks only catch known threats. A warning that doesn't appear is not proof that a command is safe.
First: did you run it?
| What you did | What to do |
|---|---|
| Only read the page, or copied the command but never pasted it | Close the tab. Nothing has run. Decode the string below if you want to know what it was. |
| Pasted it into Terminal but did not press Return | Close the Terminal window without pressing Return. If you're not sure whether anything ran, treat it as run. |
| Pressed Return | Go to "If you already ran it". Decoding still helps, because it shows what was fetched or changed. |
| macOS showed a "Paste Blocked" alert and you stopped | Apple says that for the malware-detected alerts your Mac hasn't been harmed and you shouldn't paste the command or run the script. |
Decode it in Terminal without running it
This needs nothing installed. The one rule: run only the commands on this page, never the website's.
- On the web page, select only the base64 string: the long run of letters, digits,
+,/and=. Leave outecho, the quotes, the pipe and everything after it. Copy it with ⌘C (Command-C). - Open Terminal and run:
pbpaste | base64 -D > ~/Desktop/decoded.txtThis reads the clipboard (pbpaste), decodes it (-D, capital D) and writes the result to a text file on your Desktop. Nothing is executed.
- Open the file as text:
open -e ~/Desktop/decoded.txtopen -e opens it in TextEdit. Read it. Don't run it, don't chmod it, and don't open anything it downloads.
To undo, drag decoded.txt to the Trash, or run rm ~/Desktop/decoded.txt, which deletes only that one file.
Decode it with Bytepliers
The Terminal method is enough for one clean string. Bytepliers is a native Mac app of offline developer tools. It helps when the string picked up stray whitespace, lost its = padding, or is wrapped in several layers. It decodes on your Mac and only displays the result as text.
In the Base64 tool
- Open Bytepliers and press ⌘2 (Command-2), or click Base64 in the sidebar.
- Switch the mode to Decode.
- Paste the base64 string into the input pane (⌘V).
- Read the decoded text in the output pane.
Decode mode accepts both the standard and URL-safe alphabets, whitespace and missing padding, so a string mangled by copying from a web page usually still decodes.
In the Quick Panel, straight from the clipboard
- Copy only the base64 string.
- Press ⌥⌘B (Option-Command-B), the default global shortcut. If you changed it in Settings > Shortcuts, use yours.
- With Auto-detect selected, a base64 string is shown decoded. You can also type
b64dto pick Base64 Decode directly. - Read the result and press ⎋ (Escape) to close the panel.
Details are in Quick Panel, Instant Replace and the menu bar. The panel shows only the first 20 KB or 400 lines of a long result; use the Base64 tool for anything bigger. On macOS 15.4 and later, macOS may ask whether Bytepliers can read the clipboard. Allow it for this paste.
Bytepliers only decodes. It does not scan for malware and cannot tell you whether the text is malicious.
Read what the decoded text does
Decoding shows you the text. These patterns tell you most of what you need to know:
| You see | What it means |
|---|---|
curl … followed by a URL | It downloads something from that address. Don't open the URL. |
| sh, | bash, | zsh, eval, $(…) | The downloaded or decoded text is run immediately as commands. |
chmod +x | A downloaded file is being made runnable. |
xattr with com.apple.quarantine | The quarantine flag is being removed, which bypasses the check macOS applies to downloaded files. |
osascript | It runs AppleScript, which can show dialogs, including fake password prompts. |
sudo | It wants administrator rights. |
launchctl, LaunchAgents | It may set something to start again at login. |
nohup, &, > /dev/null 2>&1 | It runs in the background and hides its output. |
| Another long base64 string | A second layer. Decode that one the same way. |
If the output looks like random symbols, the data may be compressed and then base64-encoded. In Bytepliers, open the GZIP tool, switch to Decompress and paste the original base64 string. It handles gzip, zlib and raw DEFLATE.
If the decode doesn't work
- Terminal prints an error. You probably copied extra characters such as
echo, quotes or part of the pipe. Copy only the base64 characters. - Garbled output. The data may be compressed (try the GZIP tool) or binary rather than text.
- Empty result.
pbpasteprints nothing if the clipboard doesn't hold text. Copy the string again. - The decoded text is itself base64. Decode it again. Malicious commands often nest several layers.
If you already ran it
Decoding doesn't tell you whether your Mac is infected. If you pressed Return, treat the Mac as possibly compromised.
- Disconnect. Turn off Wi-Fi and unplug Ethernet. Don't enter passwords on this Mac.
- Use a different, clean device to change passwords, starting with email, your Apple Account and banking. Commands like this are commonly used to install software that steals saved browser passwords, logged-in sessions and crypto wallet data, so assume saved credentials could be exposed.
- Sign out of active sessions on important accounts and turn on two-factor authentication where it is off.
- Decode the command and keep a copy of the text so you know what it fetched.
- Check what starts at login. Open System Settings and search for "Login Items", and look for entries you don't recognize. Launch agents and daemons on Mac explains the other place things hide.
- Run a reputable on-demand malware scanner. If you can't be sure the Mac is clean, back up your documents and erase and reinstall macOS.
- Tell your bank if you entered card or banking details. If a crypto seed phrase was typed or stored on this Mac, move those funds to a new wallet from a clean device.
Checklist before you trust the Mac again
- The decoded command is read and saved, and you know which URL it contacted.
- Passwords changed from a clean device.
- No unknown Login Items.
- A scan has run, or the Mac has been erased and reinstalled.
If nothing works
For a possible infection, contact Apple Support, your bank or your employer's IT team. Apple's page on blocked Terminal pastes also explains how to report an error if a command was blocked because a website was incorrectly reported as deceptive. Include the decoded text, the website address, roughly when you ran the command and whether a password prompt appeared. Never include your passwords.
If Bytepliers itself misbehaves while decoding, write to MacSuite support:
Subject: Bytepliers Base64 Decode problem
Mac model and macOS version:
Bytepliers version (Bytepliers > About Bytepliers):
Tool used: Base64 tool / Quick Panel
What I pasted: a base64 string of about N characters (not the string itself)
What happened: (exact message or wrong output)
What I already tried: removed whitespace, tried the GZIP toolUsing Bytepliers for this
If you read base64 from time to time, Bytepliers makes the safe route a two-keystroke habit: copy, press ⌥⌘B, read. It is part of MacSuite, and you can try it free for 7 days (as of November 2026). Terminal alone is enough for a single clean string.
Common questions
Is decoding base64 dangerous?
No. Decoding turns the string back into text. The danger is the pipe or eval that runs the result.
Can I paste the string into an online decoder?
You can, but the site's operator then receives the string. The Terminal method and Bytepliers both decode on your Mac, and Bytepliers does not send what you paste anywhere (see Bytepliers privacy and data).
Does macOS stop these commands for me?
On macOS 26.4 or later, a set of three security enhancements targets pasted commands and malicious scripts, per Apple's Terminal and script protections page. Older versions don't have them, and no check catches everything. Read the command anyway.
Where can I learn the general case?
How to Encode and Decode Base64 on Mac covers it.