Bcrypt Hash Generator

Enter a password and cost factor to get a bcrypt hash ready for database storage.

This tool runs in your browser using a simplified implementation; for security-critical use, run a server-side library.

Summary

Enter a password and cost factor to get a bcrypt hash ready for database storage.

How it works

  1. Enter the plaintext password
  2. Set cost factor (10-14 recommended)
  3. Click Generate
  4. Copy the $2b$ prefixed hash

Use cases

  • Hashing user passwords for database storage
  • Generating test password hashes for development
  • Understanding bcrypt cost factor impact

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu