PTS security notes / Free tools / Bitcoin script-type checker

Bitcoin script-type checker

Every Bitcoin output is locked by a script. Paste a scriptPubKey or an address and see the output type, and whether a public key is sitting on-chain or stays hidden until the coins are spent.

The tool

Runs in your browser. Nothing is uploaded. What you paste stays on this page. It is not sent, stored or logged. The page's Content-Security-Policy blocks network requests from scripts, and you can confirm that in view source.

Never paste a private key or seed words. This tool refuses them, but no website needs them. Press Ctrl+Enter to check.

Try an example:

How to use it

  1. Get a scriptPubKey in hex, for example from bitcoin-cli getrawtransaction <txid> 1 (the scriptPubKey.hex of an output) or a block explorer's raw view. Or use a plain address.
  2. Paste it into the box and press Check.
  3. Read the type, the exposure line and the note under it. An address is first turned back into its script.

Reads P2PK, P2PKH, P2SH, P2WPKH, P2WSH and P2TR, plus bare multisig and OP_RETURN. Base58 and bech32 or bech32m addresses are checksum-checked on mainnet and testnet.

What the types mean

Honest limits

Read more

Protect the wallet, not just understand the script

Fake wallet-upgrade notices and drainer links reach real wallets today. Don't Get Drained is a free PTS guide to spotting them before you sign anything.

Get Don't Get Drained, free

Free on Gumroad. This site has no forms, cookies or trackers. Prefer a weekly note? Read the PTS newsletter on Substack.

More free tools

Tool checked December 5, 2026. Educational, not financial or legal advice.