Educational Hub

Raw Transaction Decoder

Bitcoin transactions traveling through the peer-to-peer network are not magic files, but hexadecimal text strings (Raw Txs). Paste a raw transaction below and the protocol will visually dissect it component by component.

1

Hexadecimal Transaction

Enter the Raw Transaction Hex. It will be parsed automatically in your browser.

2

Byte-Level Breakdown

Waiting for transaction...
Version
SegWit Flag
Counters (VarInt)
Inputs
Outputs
Witness Data
Locktime
3

Decoded Properties

Anatomy of a Bitcoin transaction

A Bitcoin transaction is a structure of bytes with well-defined fields. This decoder breaks it down so you can see each part: the version, the inputs, the outputs, the witness (in SegWit transactions) and the lock time.

Each input refers to a previous output through the transaction identifier (txid) and its position, and carries the data needed to unlock it. Each output states an amount in satoshis and a locking script. The difference between what goes in and what comes out is the fee collected by the miner.

How to use the decoder

Paste a transaction in hexadecimal format (the lab includes an example) and it is processed in your browser. You will see the inputs, the outputs and their byte-by-byte structure.

SegWit and the witness

In SegWit, signatures move to a separate section called the witness. This fixes transaction malleability and reduces effective weight, so fees are lower.

Note

Decoding a transaction does not reveal private keys or spend funds. Even so, this is an educational tool; use a trustworthy block explorer to verify real payments.