SQL Injection Detector
Scan an input or query for SQL injection signatures and get a risk score
Input to scan
Examples
Classic login bypass
admin' OR '1'='1' --Risk: critical (score 100) — boolean-blind tautology + line comment.OR '1'='1' makes the WHERE clause always true and the comment removes the rest of the query.
Data exfiltration
1 UNION SELECT username, password FROM usersRisk: critical — union-based injection.UNION SELECT appends a second result set to read data from another table.
About this tool
SQL injection occurs when untrusted input is concatenated into a query and the database interprets it as code. Catching the signatures before they reach production is one of the cheapest ways to prevent a breach, because the patterns are well known.
This scanner runs a curated set of regular-expression signatures against the text you paste: boolean tautologies (OR 1=1), UNION SELECT exfiltration, stacked queries, line and block comments, time-based blind payloads (SLEEP / WAITFOR / pg_sleep), schema enumeration, destructive DROP/ALTER/TRUNCATE, and OS command execution (xp_cmdshell). Each match reports its severity and an explanation, the input is classified by injection type, and an overall 0–100 risk score shows how dangerous the payload is.
How to use this tool
Paste the suspect input
Enter a payload, form value, or query fragment you want to screen.
Read the risk score
The 0–100 score and label tell you at a glance how dangerous the payload is.
Review signatures
Each matched pattern explains what it does and how an attacker would use it.
Fix at the source
Use the findings to justify parameterized queries and input validation in the affected code.
Common mistakes
Mistake:Treating a clean scan as proof of safety.
Fix:This is heuristic. Always use parameterized queries/prepared statements; signatures catch the obvious, not every variant.
Mistake:Only blocking the flagged keywords.
Fix:Keyword blocklists are bypassable. Fix the query construction (bind variables) instead of filtering words.
Frequently asked questions
If the scanner finds nothing, is my code safe?
Not necessarily. The scanner is heuristic and catches known signatures. Always use parameterized queries/prepared statements, which prevent injection regardless of patterns.
Why was a normal keyword flagged?
Some patterns can appear in benign text. Treat findings as signals to review in context, not as definitive verdicts.
Does it run against my database?
No. It only inspects the text you paste. It never connects to a database or runs the query.
Related guides
References & standards
Related tools
AES Encryption
Encrypt and decrypt text with AES-GCM and a passphrase, fully in your browser. Uses PBKDF2 key derivation and the Web Crypto API — your data and keys never leave your device.
Basic Auth Generator
Generate an HTTP Basic Authentication header from a username and password. Produces the Authorization header and ready-to-use curl and fetch snippets. Runs fully client-side.
Bcrypt Generator & Verifier
Hash passwords with bcrypt and verify hashes — choose your cost factor (rounds 4–15), get a secure hash instantly, and check whether a password matches a hash. Runs entirely in your browser.
BIP39 Mnemonic Generator
Generate and validate BIP39 seed phrases locally for testing
Checksum Calculator
Compute file checksums (SHA-1, SHA-256, SHA-384, SHA-512) in your browser with the Web Crypto API
Client-Side File Encryptor
Encrypt any file with AES-256-GCM and PBKDF2 directly in your browser — no uploads, no accounts, wrong passwords fail loudly.