Bitcoin Address Validation

Open Source Library

Validate Bitcoin Addresses with Confidence

Validate Bitcoin addresses - P2WSH, P2WPKH, P2PKH, P2SH and P2TR. A lightweight, fast, and reliable JavaScript library supporting all major Bitcoin address formats.

Try It Live

Get detailed information about any Bitcoin address

Bitcoin Address Information
Enter a Bitcoin address below to get detailed information about it

Try these example addresses:

1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
P2PKH
3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy
P2SH
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
Bech32
bc1p5d7rjq7g6rdk2yhzks9smlaqtedr4dekq08ge8ztwac72sfr9rusxg3297
Taproot

Quick Installation

Get started in seconds with your favorite package manager

NPM
npm install bitcoin-address-validation
Yarn
yarn add bitcoin-address-validation

Why Choose This Library?

Built with performance and reliability in mind

Comprehensive Support

Validates all Bitcoin address formats: Legacy (P2PKH), Script Hash (P2SH), SegWit (Bech32), and Taproot (P2TR).

Battle Tested

Proven in production with over 4 million downloads and used by 1,700+ repositories. Trusted by developers worldwide.

TypeScript Ready

Full TypeScript support with detailed type definitions for better development experience.

About the Author

Rui Gomes

Rui Gomes

CTO at OpenNode

CTO at OpenNode with 7 years in Bitcoin development. Leading Bitcoin payment infrastructure used by thousands of businesses globally. Trusted by industry experts for building reliable, production-grade Bitcoin tools.