Bcrypt Hash & Verify
Bcrypt is the de-facto password hashing function for web apps — slow by design and salt-included. This tool generates bcrypt hashes with a cost factor between 4 and 14 (each step doubles the work) and verifies any existing hash against a candidate password. Uses `bcryptjs` in your browser; the password never leaves the page.
—
How to use
- Hash mode: type the password, choose cost (10 is the modern default), click generate.
- Verify mode: paste a hash starting with `$2a$`, `$2b$`, or `$2y$`, type the candidate password, click verify.
- Copy the hash.
Frequently asked questions
- Which cost factor should I use?
- 10 is the modern default (~100ms on a server CPU). Use 12 for high-value secrets; 14 for offline-only secrets. Below 8 is too fast in 2026.
- Why is cost 14 slow in my browser?
- Each cost increment doubles the work. Cost 14 takes ~1–4s on a typical laptop — that's the point.
- What's the difference between $2a$, $2b$, $2y$?
- Format prefixes from different bcrypt implementations. All modern libraries verify all three interchangeably.
- Is bcrypt still recommended in 2026?
- Yes, with cost ≥10. Argon2id is preferred for new projects but bcrypt remains widely supported and safe at appropriate cost.
Guides on this topic
- Hashing vs Encryption vs Encoding: What's the Difference Three terms that are constantly confused — hashing, encryption and encoding — explained clearly, with what each is for, when to use which, and the mistakes to avoid.
- Passwords and Passphrases: What Actually Makes One Strong Why length beats symbol substitution, where password strength meters mislead, how passphrases work, and what two-factor authentication does and does not protect.
Related tools
File Hash (Checksum)
Compute SHA-1, SHA-256, and SHA-512 checksums of any file.
File Hash Verifier
Drop a file and paste an expected SHA-1 / 256 / 384 / 512 — see if the actual hash matches. Useful before installing downloaded binaries.
Hash Generator (SHA)
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.
UUID Generator
Generate random version-4 UUIDs in bulk, with copy.
JSON → TypeScript Interface
Generate TypeScript interfaces from any JSON sample — types are inferred recursively and named after each key.
JSON to JSDoc @typedef Generator
Turn a JSON object into JSDoc @typedef blocks with @property tags, in your browser.