$> Kaya
~/tools/btc-script-decoderinteractive
/tools/btc-script-decoder

BTC Script Decoder

Use this BTC script decoder to inspect Bitcoin locking or unlocking scripts in ASM form and break the script into readable opcodes and pushed data chunks.

~/tools/btc-script-decoderscript.toASM
Decoded script
~/tools/btc-script-decoder/examplesusage.txt

Example Usage

  • Decode a standard P2PKH scriptPubKey into ASM form.
  • Inspect which opcodes and pushed data appear inside a script.
  • Compare script hex from a transaction parser with a readable representation.
~/tools/btc-script-decoder/guideREADME.md

BTC Script Decoder Explained

A BTC script decoder helps you inspect the actual contents of a Bitcoin script without reading raw hex by eye. You paste a script hex string and the tool converts it into an ASM-style representation while also listing the underlying opcodes and pushed data chunks. This is useful for transaction debugging, script learning, wallet development, and low-level Bitcoin analysis. Since scripts are a core part of how Bitcoin defines spending conditions, being able to decode them quickly makes it much easier to understand what an output or input script is doing.

~/tools/btc-script-decoder/faq3 items

FAQ

What kinds of scripts can this decode?

It can decode any valid Bitcoin script byte sequence into opcodes and data pushes, including standard script templates.

What does ASM mean here?

ASM is a readable script form that shows opcodes and pushed data instead of only raw hex bytes.

Does decoding tell me whether the script is spendable?

Not by itself. It shows script structure, but spendability depends on matching Bitcoin script rules and the right unlocking data.

~/tools/btc-script-decoder/related5 links
~/tools/btc-script-decoder/linksinternal