Bitcoin Script
disassembler.
▸ /notes
▸ /faq
Where do I find script hex to decode?
Block explorers show each output's scriptPubKey as hex, and raw transactions contain it directly. Paste that hex here; the disassembler splits it into opcodes and matches it against the standard templates.
What are the OP_PUSHBYTES opcodes?
Bytes 0x01 to 0x4b are not named operations: each one means "push this many following bytes onto the stack". Longer pushes use OP_PUSHDATA1/2/4 with an explicit length. Almost everything interesting in a script (keys, hashes, data) arrives via pushes.
Why do most scripts look identical?
Because virtually all outputs use a handful of templates: P2PKH, P2SH, P2WPKH, P2WSH, P2TR, and OP_RETURN. Wallets refuse to send to nonstandard scripts, so the interesting variety lives inside P2SH redeem scripts and witness scripts, which you can also paste here.
Does this validate the script?
It disassembles and pattern-matches; it does not execute. A syntactically valid script can still be unspendable (bad keys, impossible conditions). For semantics, the unlock-conditions explainer covers what each standard template actually requires.