TxBooks / tools

Tool

Bitcoin Script Decoder

Paste a hex-encoded Bitcoin script and see it decomposed into opcodes with descriptions. Auto-identifies standard output templates (P2PKH, P2WPKH, P2TR, multisig, OP_RETURN, and more).

P2PKH

Pay-to-Public-Key-Hash (legacy, address prefix "1…").

25 bytes · 5 ops

pubkey hashe76f8c7a2e3e8b0c5bd3f9e4d6b9a1c7e4f2a3b6

ASM

OP_DUP OP_HASH160 e76f8c7a2e3e8b0c5bd3f9e4d6b9a1c7e4f2a3b6 OP_EQUALVERIFY OP_CHECKSIG

Opcodes (5)

#0@0OP_DUP

Duplicates the top stack item.

#1@1OP_HASH160

Pops top item, pushes RIPEMD-160(SHA-256(item)).

#2@2OP_PUSHBYTES_20pushes 20 bytes

e76f8c7a2e3e8b0c5bd3f9e4d6b9a1c7e4f2a3b6

#3@23OP_EQUALVERIFY

Like OP_EQUAL but fails immediately if not equal.

#4@24OP_CHECKSIG

Verifies top two stack items are (pubkey, signature) for the transaction.

More tools