What does this code do?

Paste code on the left. It is checked automatically, and the verdict appears here.

The report shows what the code can reach — network, files, commands, credentials — and flags the combinations dangerous scripts rely on.

Checks run locally in your browser. Nothing is uploaded, logged or stored.

Results update as you type.

How it works

You found a script in a file on your site, an email attachment, a browser extension or a chat message, and you want to know what it does without running it. Paste it here. The checker detects the language, reads the code the way a reviewer would and explains it in plain English: what it downloads, what it executes, which files it touches and where it sends data. Nothing is executed and nothing leaves your browser.

  1. The language is detected from the code, and you can override it in the dropdown.
  2. JavaScript and TypeScript are parsed into an abstract syntax tree, so function calls, imports and property accesses are matched structurally rather than as text. Python, PowerShell and shell are scanned with rules that first mask comments and string contents. HTML is scanned tag by tag, with inline scripts handed to the JavaScript analyzer.
  3. Findings are split into capabilities (what the code can do) and suspicious behaviour (patterns typical of malicious code).
  4. Behaviour chains are evaluated: reading cookies is one thing, reading cookies and posting them to a hardcoded host is another.
  5. A risk level is assigned and every finding links to the line it came from, so you can jump straight to the code responsible.

What it detects

  • network calls, with the exact hosts and endpoints the code contacts
  • commands it executes and processes it starts
  • files it reads, writes or deletes, including credential and wallet paths
  • payloads decoded from Base64 or hex and executed at runtime
  • cookie, password, clipboard and keystroke capture
  • persistence mechanisms that survive a reboot
  • every finding linked to the exact line it came from

Privacy: your code stays in your browser

The whole static analysis, including parsing, rule matching and risk scoring, is compiled into the page and runs on your machine. Checking code never sends it anywhere and nothing is logged. Without an account nothing is stored either: close the tab and it is gone.

Signing in is optional. If you do, the code on your desk (up to 3,000 characters) is saved to your account so you can open it on your other devices. Only you can read it, pressing Clear deletes it, and it is deleted automatically 24 hours after your last edit.

Why we never say "this code is safe"

Nobody can prove a piece of code is harmless by inspecting it. Code can fetch its real payload at runtime, behave differently on another machine, or hide its intent in a dependency you cannot see. So the verdict is always one of four: low apparent risk, potential risk, high risk, or unable to determine. "Low apparent risk" means these particular patterns are absent — nothing more.

Frequently asked questions

I found malicious-looking JavaScript in a file. What does it do?
Paste it here without running it. The code is parsed into a syntax tree and the report explains what it is able to do: injected scripts found on hacked sites typically load a payload from an external host, redirect visitors or capture form input, and each of those shows up as a named finding pointing at the exact line. If the file came from your own site, treat the site as compromised and change its passwords from a clean machine.
Can I find out what code does without running it?
Yes, that is what static analysis does: the code is read, not executed. The checker reports the capabilities written into the source — network, files, commands, credentials — and summarises them in plain English. The one thing reading cannot reveal is a payload the code would fetch at runtime, which is why downloads piped into execution are flagged so prominently.
The code is obfuscated and unreadable. Can it still be explained?
Partly. Simple encodings such as Base64 strings are detected and flagged, and dangerous calls are still found in minified code. When code is heavily obfuscated the honest answer is that nobody can say what it does by reading it, so the verdict becomes "unable to determine" — and deliberate unreadability is itself a strong reason not to run it.
If the explanation looks harmless, is the code safe?
Treat it as "no known dangerous patterns", not as a guarantee. Code can behave differently on another machine or hide its intent in a dependency you cannot see. The explanation tells you what the pasted code is able to do; the decision to run it is still yours.

Checkers by language