336
0

Bcrypt Hash Generator

Egor VolchenkoEgor Volchenko
CreatedNov 20, 2026
UpdatedNov 20, 2026

This Bcrypt hash generator creates a salted password hash from text or encoded bytes. Use it to prepare development fixtures and understand the encoded value needed for verification. Password hashing is one-way; it does not encrypt a password for later decryption.

1
Iterations / Work Factor
Key Length (Bytes)
Output Format:
Live

How to use Bcrypt Hash Generator

Use the steps below to create a Bcrypt password hash.

Create a Bcrypt password hash

  1. Type or paste a non-sensitive test password into Input text.
  2. Use Input Encoding: to describe the password: UTF-8 for normal text, or Hex or Base64 for encoded bytes.
  3. Keep Auto / Live on to update the result as you edit. To work manually, turn Auto / Live off and click Run.
  4. Read Bcrypt Hash Result and retain the complete encoded string.
  5. Click Copy to copy the result. Use Clear where shown, or a field's clear control, to clear the text.

For a reproducible verification example, the test password million-test matches $2b$12$vRr1Za2zIjil3kjXOI.DCOuJ3QGryDhef1ECwvNmk8dDsP4omqXhm. A new run uses a fresh random salt when none is supplied, so its full output will differ.

Read the encoded result

The current generator uses cost 12 and a fresh random salt. It returns a complete bcrypt string beginning with $2b$12$. The output radio buttons do not convert that string to ordinary hex or Base64.

Understand the input limits

Bcrypt uses at most the first 72 input bytes here and rejects null bytes. A multibyte character can occupy more than one byte, so a character count alone does not establish whether the password fits.

Frequently asked questions

Each run generates a random salt. Different hash strings can represent the same password; use a verifier rather than comparing independently generated strings.

API — Bcrypt Password Hasher

Automate this tool directly from your scripts, CI/CD pipelines, or backend applications via HTTP POST.

No API Key Required 60 req/min
https://million.tools/api/v1/run/bcrypt

Request Parameters (JSON / Form Data)

  • input_encoding

    Input Encoding

    hex hex_ignore_non_hex base64 utf-8 utf-16le utf-16be windows-1251 windows-1252
    Type: string Default: utf-8
  • start (or input)

    Input text

    Type: string Default: —
  • hmac_key

    Salt (Optional / Auto-generated)

    Type: string Default: —
  • kdf_iterations

    Iterations / Work Factor

    Type: number Default: 10000
  • kdf_length

    Key Length (Bytes)

    Type: number Default: 32
  • output_format

    Output encoding format

    hex hex_upper base64
    Type: string Default: hex
bash — cURL
curl -X POST https://million.tools/api/v1/run/bcrypt \
  -H "Content-Type: application/json" \
  -d '{"start":"MilliOn.t00ls"}'
const response = await fetch('https://million.tools/api/v1/run/bcrypt', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "start": "MilliOn.t00ls"
  }),
});

const data = await response.json();
console.log(data.result);
import requests

response = requests.post(
    'https://million.tools/api/v1/run/bcrypt',
    json={
        "start": "MilliOn.t00ls",
    },
    timeout=15,
)

data = response.json()
print(data['result'])
$ch = curl_init('https://million.tools/api/v1/run/bcrypt');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'start' => 'MilliOn.t00ls',
    ]),
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

echo $response['result'] ?? '';
{
    "status": "success",
    "tool": "bcrypt",
    "service": "bcrypt",
    "result": "$2b$12$FRlCuth9.tVblQywH9ZJauFGOJUWHEDnqp8/VNal6Gy4efhJ7bf1u",
    "results": {
        "result": "$2b$12$FRlCuth9.tVblQywH9ZJauFGOJUWHEDnqp8/VNal6Gy4efhJ7bf1u"
    }
}
Egor Volchenko
Egor Volchenko Developer & Author

Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience.

Published:
Updated:

Ratings & feedback 0

Share your experience with this tool.

Leave feedback

Your rating (optional)

Select a rating

Write a review, leave a rating, or do both.

Your email stays private.

No feedback yet

Be the first to leave a review or rating.