Is this code safe?

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

Before you paste code from a forum, an AI answer or a random gist into your terminal or browser console, check what it actually does. The checker runs a deterministic rule engine over the code and reports every capability it finds, then flags the combinations that dangerous scripts rely on.

  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 requests, with the exact hosts and endpoints contacted
  • file reads, writes and deletions, including credential and wallet paths
  • shell and process execution, including commands assembled from strings
  • code built and executed at runtime: eval, new Function, Invoke-Expression, exec
  • cookies, browser storage, environment variables, clipboard and keystroke capture
  • persistence: registry run keys, cron jobs, scheduled tasks, systemd units, shell profiles
  • security evasion: antivirus and firewall changes, log and history clearing
  • obfuscation: Base64 and hex payloads, escape-sequence strings, packed one-liners

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

How do I check if code is safe to use?
Paste it into the checker above. It explains in plain language what the code does, lists every capability it finds and assigns a risk level based on combinations typical of malicious code. It is the fastest way to check if code is safe to use before you run it: no sign-up, nothing uploaded, and results appear as you type.
What does this tool actually check?
It looks for network requests, file reads and writes, shell command execution, code built and executed at runtime, access to cookies, credentials, clipboard and keystrokes, persistence and privilege changes, security tool tampering, and encoded or obfuscated payloads. It also evaluates combinations, such as reading local secrets and uploading them.
Is my code uploaded anywhere?
Not for checking. The analysis is compiled into the page and runs entirely in your browser, so checking a snippet makes no network request at all. Without an account your code is never uploaded or stored and is gone when you close the tab. If you choose to sign in, the code on your desk is saved to your account so you can open it on your other devices. Clear removes it, and it is deleted automatically 24 hours after your last edit.
Which languages are supported?
JavaScript, TypeScript, Python, PowerShell, Bash/shell and HTML. JavaScript and TypeScript use a real AST parser; the others use rules that mask comments and strings before matching so documentation text cannot trigger findings.
Can it tell me a script is definitely safe?
No, and it never claims to. Static analysis can only show that known dangerous patterns are absent. A script can still fetch its real payload at runtime or depend on code you cannot see, which is why the best verdict available is "low apparent risk".
Does it check whether the code is valid or correct?
No. This is a safety checker, not a validator: it reports what the code is able to do, not whether it compiles or produces the right output. Code can be perfectly valid and still malicious, or broken and still harmless.
Why does it flag code that I know is fine?
Capabilities are reported separately from suspicious behaviour precisely for this reason. Seeing "network access: yes" for a script that calls an API is correct and expected; it does not raise the risk level on its own.
Do I need an account?
No. Everything works without signing up and there is nothing to install: paste, check, leave. An optional email sign-in turns the desk into an online clipboard for code: paste a snippet on one device and open it on another, with everything deleted 24 hours after your last edit.

Checkers by language