Base58Check Encoder And Decoder

Encode payload bytes with Bitcoin-style Base58Check or decode and verify a Base58Check string.



Question

What is Base58Check?

Base58Check is a Bitcoin-style wrapper around raw bytes. It combines a version prefix with a payload, appends the first four bytes of the double SHA-256 digest, and encodes the complete byte sequence with the Bitcoin Base58 alphabet.

Use this page to encode version and payload hex into a Base58Check string, or decode a Base58Check value to inspect the version byte, payload bytes, embedded checksum, expected checksum, and checksum status. The checksum verifies accidental transcription errors only.

A valid checksum does not prove wallet ownership, network suitability, signatures, spendability, private key safety, or transaction validity. Review the decoded version and payload against the protocol or wallet format you actually use.


Code

How the checksum is calculated

Base58Check treats the version and payload as hexadecimal bytes, computes SHA256(SHA256(version || payload)), takes the first four checksum bytes, and Base58 encodes the full byte array. Decoding repeats the checksum calculation and reports whether it matches the embedded value.

Enter only hexadecimal characters in the version and payload fields. Whitespace is ignored, but odd-length hex strings and non-hex characters are rejected so byte boundaries stay clear.


Books

References