Bcrypt
Hash a password with bcrypt, PBKDF2, scrypt or NTLM, and check a password against a hash whose format it recognises, with the hash's cost and salt shown.
About this tool What it's for, how to use it and an example
What it's for
Make a password hash, or check whether a password matches one, in bcrypt, PBKDF2, scrypt or NTLM. These are the
formats web frameworks and Windows use to store passwords so that a stolen database is hard to crack (bcrypt in PHP’s
password_hash, Laravel, Ruby on Rails and Spring Security; PBKDF2 and scrypt in Django and many Python and Node
apps; NTLM in Windows).
For example, when you need to set a user’s password directly in a database or a config file, or want to confirm which password a test account’s hash belongs to.
How to use it
Under Hash a password, type the password, choose a format and its cost, and choose Hash. The cost is remembered. A random salt is added each time, so the same password gives a different hash every time, and every one of them checks correctly (NTLM has no salt, so it always gives the same hash).
- bcrypt: cost 4 to 15; each step up doubles the work. Looks like
$2b$10$…. - PBKDF2-SHA256, -SHA512, -SHA1: the number of iterations. Written in the passlib form
$pbkdf2-sha256$iterations$salt$hash, with the salt and hash in base64 using.for+and no=padding. - scrypt: the cost is N as a power of 2 (15 means N = 32768), with block size r = 8 and parallelism p = 1.
Written in the passlib form
$scrypt$ln=15,r=8,p=1$salt$hash, with the salt and hash encoded as above. - NTLM: the MD4 hash of the password in UTF-16LE, as 32 hex digits.
Under Check a password, paste a hash and type a password: the tool tells the format from the start of the hash
($2a$, $2b$, $2y$, $pbkdf2-…$, $scrypt$, or 32 hex digits for NTLM), shows its settings and salt, and says
whether they match.
Example
Paste this hash under Check a password:
$2b$10$Z5PB7ItoGAt17S/Sg.pSm.392kQ5R4znsW4kOMsc7geSwxSF7UdyS
and type correct horse as the password: it reports Match. The cost is shown as 10, and the salt as
Z5PB7ItoGAt17S/Sg.pSm.. Type anything else and it reports No match. Pasting 8846f7eaee8fb117ad06bdd830b7586c
and typing password matches as NTLM.
Good to know
Bcrypt reads only the first 72 bytes of a password, so longer ones match on their start alone; the tool warns
when that happens. Costs above 15 (bcrypt) or 18 (scrypt) take too long or too much memory in a browser to be
useful here, and a hash with very high settings may take a long time to check. Other layouts of PBKDF2 and scrypt
hashes (Django’s pbkdf2_sha256$…, for example) and Argon2 aren’t read. A 32-digit hex value is treated as NTLM,
though MD4 and MD5 hashes look the same. NTLM is unsalted and quick to guess, so use it only to check Windows hashes.
Passwords never leave the page, but take care where you paste real hashes and passwords.
Guide: Handling passwords and tokens in your own app
Take care with secrets. This runs only in your browser: what you enter isn't uploaded, stored or put in a link, and the page is built so that it can't send it anywhere else. Your browser's extensions and other software on your device can still see what's on screen, so use a device you trust and real secrets only when you need to. Disconnecting from the internet once the page has loaded gives the most protection. Use is at your own risk: see the terms.
Hash a password
Check a password
Each step up in bcrypt or scrypt cost doubles the time, for you and for anyone trying to guess the password. 10 to 12 is usual for bcrypt in web sign-ins today. NTLM is fast and unsalted, so it is weak: it is here for checking Windows hashes.
Built with The third-party code and data this tool uses, and their licences
This tool runs on the following open-source work, copied onto this site and served from it:
- bcrypt.js 3.0.3
- Copyright
- Copyright (c) 2012 Nevins Bartolomeo, Copyright (c) 2012 Shane Girish, Copyright (c) 2025 Daniel Wirtz
- Licence
- BSD 3-Clause License
- Source
- github.com/dcodeIO/bcrypt.js
- @noble/hashes 2.4.0
- Copyright
- Copyright (c) 2022 Paul Miller
- Licence
- MIT License
- Source
- github.com/paulmillr/noble-hashes
Every page also uses Montserrat (SIL Open Font License 1.1).
Everything the site uses is on Credits and licences.
Private: this tool runs in your browser. Nothing you type, paste or choose leaves this page.
Saved you a few minutes? Say thanks with a coffee.
Something wrong with this tool, or missing from it? Report a bug or suggest a feature.