Simplify Your Workflow: Search MiniWebtool.
Add Extension
Related Tools
Argon2 Hash GeneratorFNV-1a Hash GeneratorMurmurHash3 GeneratorSHA256 Hash GeneratorWhirlpool Hash Generator
Home Page > Hash and Checksum > Bcrypt Hash Generator / Checker

Bcrypt Hash Generator / Checker

Generate bcrypt password hashes with a configurable cost factor (rounds 4-15) and verify whether a plain-text password matches an existing bcrypt hash. Includes a visual hash anatomy breakdown, real-time security meter, cost vs. speed estimator, and side-by-side variant explainer ($2a$, $2b$, $2y$).

Bcrypt Hash Generator / Checker
๐Ÿ’ก Quick examples โ€” click to fill the form
UTF-8 ยท max 72 bytes
0 / 72 bytes
Bcrypt limit
โš™ Cost Factor (work rounds)
12 ~ 250 ms
4567 891011 12131415
Security strength: Very Strong
60 characters ยท starts with $2a/$2b/$2x/$2y

Embed Bcrypt Hash Generator / Checker Widget

About Bcrypt Hash Generator / Checker

Welcome to the Bcrypt Hash Generator and Checker โ€” a free online tool that lets you generate cryptographically secure bcrypt password hashes with a configurable cost factor and verify whether a plain-text password matches an existing bcrypt hash. Whether you are seeding a database, debugging a login flow, migrating users between systems, or learning about adaptive password hashing, this tool gives you instant results plus an educational visual breakdown of how bcrypt structures its 60-character hash format.

What is Bcrypt and Why Use It?

Bcrypt is an adaptive password-hashing function based on the Blowfish cipher, designed in 1999 by Niels Provos and David Maziรจres. Unlike fast cryptographic hashes such as SHA-256 or MD5, bcrypt is intentionally slow and includes a tunable cost factor that can be increased as hardware improves. Every bcrypt hash also incorporates a unique random salt, which prevents attackers from using precomputed rainbow tables. OWASP recommends bcrypt as one of the four acceptable password-hashing algorithms for storing user credentials in modern web applications.

Cost Factor: The Heart of Bcrypt Security

The cost factor (also called work factor or rounds) controls how computationally expensive the hash is. It is logarithmic: each +1 doubles the work. A cost of 12 takes roughly 250 milliseconds on a typical modern CPU; a cost of 14 takes about 1 second. The table below shows estimated compute times for each cost level โ€” pick a value that is fast enough for your login flow but slow enough to frustrate attackers.

Cost Rounds Est. Time Strength Recommended For
4 2^4 < 1 ms Insecure Testing only โ€” never production
5 2^5 2 ms Insecure Testing only โ€” never production
6 2^6 4 ms Insecure Testing only โ€” never production
7 2^7 8 ms Insecure Testing only โ€” never production
8 2^8 16 ms Weak Legacy systems
9 2^9 31 ms Fair Legacy systems
10 2^10 62 ms Good Production minimum
11 2^11 125 ms Strong Production minimum
12 2^12 250 ms Very Strong Recommended default
13 2^13 500 ms Excellent High-security apps
14 2^14 1.00 s Maximum Maximum strength
15 2^15 2.00 s Maximum Maximum strength

Bcrypt Hash Anatomy

Every bcrypt hash is exactly 60 characters long and follows a fixed structure. Understanding each segment makes it much easier to debug login issues or migrate hashes between systems:

$2b$12$7i..qTPY7p4ZLvKIepRKwelX0JB55DviohJT.JYruzy4EN6cl.q8O   $2b$ → algorithm variant
  $12$ → cost factor (2^12 = 4096 rounds)
  7i..qTPY7p4ZLvKIepRKwe → 22-character base64 salt
  lX0JB55DviohJT.JYruzy4EN6cl.q8O → 31-character hashed digest

The Salt and Digest Encoding

Bcrypt uses a custom base64 alphabet that is similar to standard base64 but uses ./ instead of +/ and does not use padding. This is purely historical and does not affect security. The salt is 16 random bytes, encoded as 22 base64 characters; the digest is 23 bytes, encoded as 31 characters.

Bcrypt Variants Explained

You will encounter several bcrypt prefixes in the wild. All produce hashes of the same structure, but they have distinct origins:

$2a$
The original bcrypt revision, ubiquitous in legacy systems and still produced by older libraries. Compatible with $2b$ for verification.
$2b$
The modern reference implementation. Fixed a wraparound bug for passwords longer than 255 bytes. Use this for new hashes.
$2x$
Emergency PHP fix for the 2011 sign-extension bug. Marks hashes generated with the buggy implementation so they can be migrated.
$2y$
PHP-specific corrected version after the 2011 bug. Functionally identical to $2b$ for ASCII passwords.

How to Use This Tool

  1. Choose mode: Select Generate Hash to create a new bcrypt hash, or Verify Hash to check whether a password matches an existing hash.
  2. Enter password: Type the plain-text password into the input field. The byte meter warns you if your password approaches bcrypt's 72-byte limit.
  3. Set the cost factor: In Generate mode, drag the slider to choose a cost factor between 4 and 15. The estimated compute time and security rating update in real time.
  4. Paste the hash to verify: In Verify mode, paste the existing 60-character bcrypt hash starting with $2a$, $2b$, $2x$, or $2y$.
  5. Run and read the result: Click the action button. Generate mode returns the hash with a colour-coded anatomy breakdown; Verify mode shows a large MATCH or NO MATCH indicator with the original cost factor.

The 72-Byte Password Limit

Bcrypt is built on the Blowfish key-setup phase, which only consumes the first 72 bytes of the password. Passwords longer than 72 bytes are silently truncated by older libraries or rejected outright by newer ones. Note that bytes matter, not characters โ€” a single emoji is 4 bytes, and most non-ASCII characters take 2-4 bytes in UTF-8. If your application accepts arbitrarily long passwords, the standard mitigation is to pre-hash the password with SHA-256 and base64-encode the digest before passing it to bcrypt; this produces a fixed 44-byte input that fits comfortably within the limit.

When to Choose Bcrypt vs. Argon2 vs. Scrypt

Modern password-hashing recommendations from OWASP and IETF (RFC 9106) list four acceptable algorithms: Argon2id (preferred for new applications), bcrypt, scrypt, and PBKDF2. Choose bcrypt when:

  • You need broad compatibility โ€” every mainstream language has a mature bcrypt library
  • You are working with an existing system that already uses bcrypt
  • You want a battle-tested algorithm with 25+ years of cryptanalysis
  • Memory-hard hashing (Argon2id, scrypt) is impractical for your environment

Choose Argon2id if you are building a new system with no compatibility constraints โ€” it is the modern winner of the Password Hashing Competition and provides resistance against GPU and FPGA attacks that bcrypt cannot match.

Practical Use Cases

For Developers

  • Seed development databases with realistic test users without running your full registration flow
  • Generate fixture data for integration tests that exercise the login path
  • Debug failed logins by verifying the production hash against the password the user reports
  • Migrate legacy $2a$ hashes to $2b$ by re-hashing on next login
  • Tune the cost factor for your production environment by measuring actual compute time

For Security Engineers

  • Verify that a third-party authentication service is producing hashes at the cost factor it claims
  • Audit password storage by inspecting hash variant and cost in production samples
  • Build training material that shows how bcrypt's anatomy makes it resistant to rainbow tables

For Learners

  • Generate the same password twice to see how the salt produces different hashes
  • Experiment with different cost factors to feel the doubling effect first-hand
  • Verify a known hash to understand how bcrypt extracts the cost and salt before hashing the candidate

Frequently Asked Questions

What cost factor should I use for bcrypt?

OWASP currently recommends a cost factor of at least 10, with 12 being a good modern default that takes about 250 milliseconds on a typical server. Cost is logarithmic, so each +1 doubles the work. Cost 14 is appropriate for high-security applications, while cost 15 is the practical maximum for interactive logins. Never use a cost below 10 in production.

What is the difference between $2a$, $2b$, $2x$, and $2y$?

All four are bcrypt variants distinguished by their prefix. $2a$ is the original revision; $2x$ and $2y$ were emergency PHP fixes for a sign-extension bug discovered in 2011; $2b$ is the modern reference implementation that fixed a wraparound bug in long passwords. Hashes generated with any variant remain verifiable. Modern libraries produce $2b$ by default and you should prefer it for new hashes.

Is the password I enter sent to a server?

The form is processed server-side over HTTPS to perform the bcrypt computation, but neither the password nor the resulting hash is logged or stored โ€” each request is processed and discarded. For absolute paranoia about test passwords, never paste a real production password into any online tool. Use this tool with throwaway test passwords or in a local development environment.

Why does bcrypt have a 72-byte password limit?

Bcrypt is built on the Blowfish key-setup phase, which only consumes the first 72 bytes of input. Passwords longer than 72 bytes are silently truncated by older libraries or rejected by newer ones. To support arbitrarily long passwords, pre-hash with SHA-256 and base64-encode the digest before passing it to bcrypt. This tool warns when your password exceeds the limit.

Can I verify a hash that was generated by another bcrypt library?

Yes. All bcrypt implementations follow the same wire format ($variant$cost$salt+digest, 60 characters total) and produce interoperable hashes. A hash made by Node.js bcrypt, PHP password_hash, Python passlib, Spring Security, or any compliant library will verify correctly here, as long as the variant prefix is recognised.

Why does generating the same password twice give a different hash?

Bcrypt automatically generates a fresh random 16-byte salt for every hash. The salt is mixed into the algorithm and embedded in the output, so two hashes of the same password are virtually never identical. Verification works because checkpw extracts the cost and salt from the stored hash and re-runs bcrypt with those exact parameters before comparing the digest.

Can I retrieve the original password from a bcrypt hash?

No. Bcrypt is a one-way function โ€” there is no decryption operation. The only way to find the original password from a hash is to guess passwords and run them through bcrypt with the same cost and salt until the digests match, which is exactly what attackers do during a brute-force attack. The whole point of bcrypt's adaptive cost is to make those guesses prohibitively expensive.

Does it work on mobile devices?

Yes. The interface is fully responsive and works on smartphones, tablets, and desktops. The mode switch, cost slider, and result panels all adapt to narrow screens.

Additional Resources

Reference this content, page, or tool as:

"Bcrypt Hash Generator / Checker" at https://MiniWebtool.com/bcrypt-hash-generator-checker/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Apr 26, 2026

Hash and Checksum:

Top & Updated:

Random Name PickerRandom PickerInstagram User ID LookupImage ResizerLine CounterFacebook User ID LookupFPS ConverterRelative Standard Deviation CalculatorSort NumbersMAC Address GeneratorRemove SpacesWord to Phone Number ConverterMercury Retrograde CalendarBatting Average CalculatorMAC Address LookupSlope and Grade CalculatorERA CalculatorRandom Quote Generator๐Ÿ“ท OCR / Image to Textโฌ› Aspect Ratio CalculatorSum CalculatorPercent Off CalculatorFeet and Inches to Cm ConverterSun, Moon & Rising Sign Calculator ๐ŸŒž๐ŸŒ™โœจSHA256 Hash GeneratorInvisible Text GeneratorMerge VideosAudio SplitterRandom Credit Card GeneratorNumber of Digits CalculatorRandom IMEI GeneratorMaster Number CalculatorVertical Jump CalculatorMP3 LooperRandom Truth or Dare GeneratorLunar Calendar ConverterImage SplitterOPS CalculatorBitwise CalculatorRandom Fake Address GeneratorWeight Loss CalculatorSalary Conversion CalculatorLog Base 10 CalculatorFile Size ConverterPhone Number ExtractorSquare Root (โˆš) CalculatorJob FinderCm to Feet and Inches Converter๐Ÿ–ฑ๏ธ Click CounterBattery Life CalculatorRandom Superpower GeneratorCaffeine Overdose CalculatorRandom Activity GeneratorRandom Poker Hand GeneratorYouTube Channel StatisticsRoman Numerals ConverterRandom Writing Prompt GeneratorCompound Growth CalculatorNumber to Word ConverterRandom Birthday GeneratorText FormatterRandom Movie PickerOctal CalculatorSun Position CalculatorWord Ladder GeneratorStair CalculatorHalfway Date CalculatorSaturn Return CalculatorIP Subnet CalculatorRandom Meal GeneratorSHA512 Hash GeneratorLong Division CalculatorYouTube Tag ExtractorSlugging Percentage CalculatorAdd Text to ImageOn Base Percentage CalculatorCompare Two StringsRandom Loadout GeneratorDecimal to BCD ConverterBCD to Decimal ConverterFirst n Digits of PiRandom Emoji GeneratorBinary to Gray Code ConverterArc Length CalculatorGray Code to Binary ConverterVideo to Image ExtractorMartingale Strategy CalculatorList of Prime NumbersBcrypt Hash Generator / CheckerPercent Growth Rate CalculatorWord Scramble GeneratorVideo CompressorBingo Card GeneratorRandomize NumbersAPI Tester๐Ÿ“… Date CalculatorLeap Years ListFlip VideoAI Text HumanizerBolt Torque CalculatorEmail ExtractorQuotient and Remainder CalculatorImage CompressorWAR CalculatorBreak Line by CharactersName RandomizerHebrew Calendar ConverterBroken Link CheckerRandom User-Agent GeneratorIP Address to Hex ConverterDay of the Year Calculator - What Day of the Year Is It Today?Time Duration CalculatorConnect the Dots GeneratorProportion CalculatorRemove AccentAI Language DetectorSocial Media Username CheckerPartition Function CalculatorRandom Tournament Bracket GeneratorSigma Notation Calculator (Summation)Random Number PickerCone Flat Pattern (Template) GeneratorDecibel (dB) CalculatorCM to Inches ConverterSmall Text Generator โฝแถœแต’แต–สธ โฟ แต–แตƒหขแต—แต‰โพDMS to Decimal Degrees ConverterMD5 Hash GeneratorRatio to Percentage CalculatorPercentile CalculatorRandom Time GeneratorSum of Positive Integers CalculatorLove Compatibility CalculatorNumber ExtractorMultiple Fraction Calculator๐Ÿ” Plagiarism CheckerPercent to PPM ConverterTrigonometric Equation Solver1099 Tax CalculatorAcreage Calculator๐Ÿ”Š Tone GeneratorURL ExtractorFirst n Digits of eAdd Prefix and Suffix to TextBinary to BCD ConverterColor InverterEffect Size CalculatorSteel Weight CalculatorMolarity CalculatorLED Resistor CalculatorBoiling Point CalculatorVoronoi Diagram GeneratorYouTube Thumbnail DownloaderMAC Address AnalyzerOutlier CalculatorWhat is my Zodiac Sign?Name Number CalculatorBeer Chill Time CalculatorModulo CalculatorPercentage Increase CalculatorVideo SplitterEstimation CalculatorWhat is my Lucky Number?Day of Year CalendarText Case ConverterYouTube Comment PickerRandom Name GeneratorSourdough CalculatorWHIP CalculatorDice RollerAstrological Element Balance CalculatorLottery Number GeneratorMaze GeneratorRemove Lines Containing...Amortization CalculatorRandom US State GeneratorBlood Donation Time CalculatorSquare Numbers ListRandom Chess Opening GeneratorRandom PIN GeneratorWater Usage CalculatorFraction CalculatorIP Address to Binary ConverterLinear Programming SolverRandom Line PickerMandelbrot Set ExplorerSocial Media Post Time OptimizerReverse VideoTwitter/X Timestamp ConverterRandom Group GeneratorShort Selling Profit CalculatorAdjust Video SpeedBoxing Punch Power CalculatorBCD to Binary ConverterExponential Decay CalculatorHeight Percentile CalculatorRandom Video Thumbnail GeneratorStandard Error Calculator๐Ÿ’ง Dew Point CalculatorAI ParaphraserAI Punctuation AdderSort Lines AlphabeticallyHex to BCD ConverterBCD to Hex ConverterMedian CalculatorList RandomizerAverage CalculatorPVIFA CalculatorHypotenuse CalculatorRemove Audio from VideoActual Cash Value CalculatorScientific Notation to Decimal ConverterAngel Number CalculatorLog Base 2 CalculatorRoot Mean Square CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderLbs to Kg ConverterHex to Decimal ConverterConvolution CalculatorRandom String GeneratorRemove Leading Trailing SpacesMarkup CalculatorPVIF CalculatorDecimal to Hex ConverterInstagram Font GeneratorSocial Media Image Size GuideTikTok Money CalculatorTwitter/X Character CounterYouTube Watch Time CalculatorTwitch Earnings CalculatorYouTube Shorts Monetization CalculatorFacebook Ad Cost CalculatorSocial Media ROI CalculatorCTR CalculatorROAS CalculatorInfluencer ROI CalculatorForce CalculatorAcceleration CalculatorVelocity CalculatorMomentum CalculatorProjectile Motion CalculatorKinetic Energy CalculatorPotential Energy CalculatorWork and Power CalculatorDensity CalculatorPressure CalculatorIdeal Gas Law CalculatorFree Fall CalculatorTorque CalculatorHorsepower CalculatorDilution CalculatorChemical Equation BalancerStoichiometry CalculatorPercent Yield CalculatorEmpirical Formula CalculatorTitration CalculatorMole/Gram/Particle ConverterIrregular Polygon Area CalculatorFrustum CalculatorTorus Calculator3D Distance CalculatorGreat Circle Distance CalculatorCircumscribed Circle (Circumcircle) CalculatorInscribed Circle (Incircle) CalculatorAngle Bisector CalculatorTangent Line to Circle CalculatorHeron's Formula CalculatorCoordinate Geometry Distance CalculatorVolume of Revolution CalculatorSurface of Revolution CalculatorParametric Curve GrapherRiemann Sum CalculatorTrapezoidal Rule CalculatorSimpson's Rule CalculatorImproper Integral CalculatorL'Hรดpital's Rule CalculatorMaclaurin Series CalculatorPower Series CalculatorSeries Convergence Test CalculatorInfinite Series Sum CalculatorAverage Rate of Change CalculatorInstantaneous Rate of Change CalculatorRelated Rates SolverOptimization Calculator (Calculus)Gradient Calculator (Multivariable)Divergence CalculatorCurl CalculatorLine Integral CalculatorSurface Integral CalculatorJacobian Matrix CalculatorNewton's Method CalculatorRREF Calculator (Row Echelon Form)Matrix Inverse CalculatorMatrix Multiplication CalculatorDot Product CalculatorCross Product CalculatorVector Magnitude CalculatorUnit Vector CalculatorAngle Between Vectors CalculatorNull Space CalculatorColumn Space CalculatorCramer's Rule CalculatorMatrix Diagonalization CalculatorQR Decomposition CalculatorCholesky Decomposition CalculatorMatrix Power CalculatorCharacteristic Polynomial CalculatorBayes' Theorem CalculatorF-Test / F-Distribution CalculatorHypergeometric Distribution CalculatorNegative Binomial Distribution CalculatorGeometric Distribution CalculatorExponential Distribution CalculatorWeibull Distribution CalculatorBeta Distribution CalculatorSpearman Rank Correlation CalculatorFisher's Exact Test CalculatorContingency Table CalculatorOdds Ratio CalculatorBernoulli Equation CalculatorHeat Transfer CalculatorThermal Expansion CalculatorSpecific Heat Capacity CalculatorGear Ratio Calculator (Mechanical)Pulley System CalculatorHydraulic Cylinder Force CalculatorBelt Length CalculatorCloset Capsule CalculatorStorage Unit Size CalculatorMoving Box Quantity CalculatorGift Card Tip CalculatorGas vs Electric Cost ComparisonPrint Cost CalculatorHair Dye Mixing CalculatorLaundry Detergent Dosage CalculatorDishwasher Load OptimizerTile Grout CalculatorPaint Color Mixing CalculatorFlashcard Spaced Repetition SchedulerLearning Curve CalculatorCornell Notes GeneratorVocabulary Quiz GeneratorLanguage Learning Hours to Fluency CalculatorCollege Cost CalculatorScholarship ROI CalculatorAI Recipe Generator (From Ingredients)AI Gift Idea GeneratorAI Meal Plan GeneratorAI Workout Plan GeneratorAI Reading List GeneratorAI Travel Itinerary GeneratorAI Excuse Generator (Polite)AI Apology Letter WriterAI Unit Converter (Natural Language)AI Resume / CV AnalyzerAI Text Tone AnalyzerAI Data Visualizer (Paste CSV)AI Regex GeneratorAI SQL Query GeneratorPaycheck Calculator (Take-Home Pay)VA Loan CalculatorARM Mortgage CalculatorBiweekly Mortgage Payment CalculatorPMI CalculatorMortgage Points CalculatorBalloon Loan CalculatorInterest-Only Mortgage CalculatorConstruction Loan CalculatorLand Loan CalculatorBoat Loan CalculatorRV Loan CalculatorMotorcycle Loan CalculatorCar Affordability CalculatorOut-the-Door Price CalculatorRent Affordability CalculatorProrated Rent CalculatorRent Increase CalculatorMileage Reimbursement CalculatorPer Diem CalculatorInvoice GeneratorSalary Raise CalculatorSeverance Pay CalculatorHSA Calculator529 College Savings CalculatorI Bond CalculatorT-Bill CalculatorCD Ladder CalculatorCredit Utilization CalculatorLoan Comparison CalculatorGross-Up CalculatorSWP CalculatorRD CalculatorPPF CalculatorEPF CalculatorNPS CalculatorGratuity CalculatorHRA Exemption CalculatorUK Stamp Duty CalculatorZakat CalculatorTithe CalculatorBetting Odds ConverterPayPal Fee CalculatorStripe Fee CalculatorEtsy Fee CalculatoreBay Fee CalculatorAmazon FBA CalculatorShopify Profit CalculatorWholesale Price CalculatorCraft Pricing CalculatorDepreciation CalculatorEOQ CalculatorReorder Point CalculatorSafety Stock CalculatorFIFO / LIFO CalculatorContribution Margin CalculatorWorking Capital CalculatorCost Per Lead CalculatorEmail Marketing ROI CalculatorTip Pooling CalculatorWeek Number CalculatorAnniversary CalculatorHalf Birthday CalculatorSobriety CalculatorRetirement CountdownDate to Roman Numerals ConverterSunrise & Sunset CalculatorMoon Phase CalculatorNap CalculatorWorld ClockJulian Date ConverterISO 8601 Date FormatterChinese Gender PredictorImplantation CalculatorIVF Due Date CalculatorhCG Doubling Time CalculatorChild Height PredictorChild BMI Percentile CalculatorBaby Eye Color PredictorBaby Name GeneratorDiaper Size CalculatorBaby Milk Intake CalculatorCost of Raising a Child CalculatorEasy Grader (EZ Grader)CGPA to Percentage ConverterSAT Score CalculatorACT Score CalculatorAP Score CalculatorAttendance Percentage CalculatorPercentage to CGPA ConverterCitation Generator (APA/MLA/Chicago)AI Quiz GeneratorAI Lesson Plan GeneratorInteractive Periodic TableElectron Configuration CalculatorLimiting Reactant CalculatorTheoretical Yield CalculatorHenderson-Hasselbalch CalculatorpKa to Ka ConverterMolality CalculatorNormality CalculatorPercent Composition CalculatorFreezing Point Depression CalculatorBoiling Point Elevation CalculatorOsmotic Pressure CalculatorNernst Equation CalculatorBeer-Lambert Law CalculatorTap Drill Size ChartGravitational Force CalculatorEscape Velocity CalculatorKepler's Third Law CalculatorTime Dilation CalculatorE=mcยฒ Calculator