{"meta":{"title":"Bitcoin Script Opcode Reference","description":"Machine-readable reference of 113 Bitcoin Script opcodes with word, hex byte, decimal, category, status (enabled\/disabled\/reserved\/Tapscript), activating BIP and function.","generated":"2026-11-07T19:18:48+00:00","version":"1.0","license":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/","license_name":"CC BY 4.0","source":"https:\/\/d-central.tech\/bitcoin-script-opcodes\/","record_count":113,"disclaimer":"Hex values and disabled\/reserved status are the canonical assignments in Bitcoin Core's script\/script.h opcodetype enum. CLTV\/CSV\/CHECKSIGADD note the soft-fork BIP that gave the opcode meaning."},"rows":[{"word":"OP_0 \/ OP_FALSE","hex":"0x00","dec":0,"category":"Constants","status":"Enabled","bip":"","description":"Push an empty byte array (numeric\/boolean zero) onto the stack."},{"word":"OP_PUSHBYTES_1\u201375","hex":"0x01\u20130x4b","dec":1,"category":"Constants","status":"Enabled","bip":"","description":"The next opcode byte (1\u201375) is the number of subsequent bytes to push as data."},{"word":"OP_PUSHDATA1","hex":"0x4c","dec":76,"category":"Constants","status":"Enabled","bip":"","description":"The next 1 byte is the length; push that many following bytes."},{"word":"OP_PUSHDATA2","hex":"0x4d","dec":77,"category":"Constants","status":"Enabled","bip":"","description":"The next 2 bytes (LE) are the length; push that many following bytes."},{"word":"OP_PUSHDATA4","hex":"0x4e","dec":78,"category":"Constants","status":"Enabled","bip":"","description":"The next 4 bytes (LE) are the length; push that many following bytes."},{"word":"OP_1NEGATE","hex":"0x4f","dec":79,"category":"Constants","status":"Enabled","bip":"","description":"Push the number -1 onto the stack."},{"word":"OP_RESERVED","hex":"0x50","dec":80,"category":"Reserved","status":"Reserved","bip":"","description":"Invalidates the script if executed (does nothing inside an unexecuted branch)."},{"word":"OP_1 \/ OP_TRUE","hex":"0x51","dec":81,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 1 onto the stack."},{"word":"OP_2","hex":"0x52","dec":82,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 2 onto the stack."},{"word":"OP_3","hex":"0x53","dec":83,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 3 onto the stack."},{"word":"OP_4","hex":"0x54","dec":84,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 4 onto the stack."},{"word":"OP_5","hex":"0x55","dec":85,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 5 onto the stack."},{"word":"OP_6","hex":"0x56","dec":86,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 6 onto the stack."},{"word":"OP_7","hex":"0x57","dec":87,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 7 onto the stack."},{"word":"OP_8","hex":"0x58","dec":88,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 8 onto the stack."},{"word":"OP_9","hex":"0x59","dec":89,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 9 onto the stack."},{"word":"OP_10","hex":"0x5a","dec":90,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 10 onto the stack."},{"word":"OP_11","hex":"0x5b","dec":91,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 11 onto the stack."},{"word":"OP_12","hex":"0x5c","dec":92,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 12 onto the stack."},{"word":"OP_13","hex":"0x5d","dec":93,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 13 onto the stack."},{"word":"OP_14","hex":"0x5e","dec":94,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 14 onto the stack."},{"word":"OP_15","hex":"0x5f","dec":95,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 15 onto the stack."},{"word":"OP_16","hex":"0x60","dec":96,"category":"Constants","status":"Enabled","bip":"","description":"Push the number 16 onto the stack."},{"word":"OP_NOP","hex":"0x61","dec":97,"category":"Flow control","status":"Enabled","bip":"","description":"Does nothing."},{"word":"OP_VER","hex":"0x62","dec":98,"category":"Reserved","status":"Reserved","bip":"","description":"Invalidates the script if executed."},{"word":"OP_IF","hex":"0x63","dec":99,"category":"Flow control","status":"Enabled","bip":"","description":"Execute the following statements if the top stack value is true."},{"word":"OP_NOTIF","hex":"0x64","dec":100,"category":"Flow control","status":"Enabled","bip":"","description":"Execute the following statements if the top stack value is false."},{"word":"OP_VERIF","hex":"0x65","dec":101,"category":"Reserved","status":"Reserved","bip":"","description":"Invalidates the script even when inside an unexecuted branch."},{"word":"OP_VERNOTIF","hex":"0x66","dec":102,"category":"Reserved","status":"Reserved","bip":"","description":"Invalidates the script even when inside an unexecuted branch."},{"word":"OP_ELSE","hex":"0x67","dec":103,"category":"Flow control","status":"Enabled","bip":"","description":"Switch execution within an OP_IF \/ OP_NOTIF \u2026 OP_ENDIF block."},{"word":"OP_ENDIF","hex":"0x68","dec":104,"category":"Flow control","status":"Enabled","bip":"","description":"Close an OP_IF \/ OP_NOTIF \/ OP_ELSE block."},{"word":"OP_VERIFY","hex":"0x69","dec":105,"category":"Flow control","status":"Enabled","bip":"","description":"Mark the script invalid unless the top stack value is true; otherwise pop it."},{"word":"OP_RETURN","hex":"0x6a","dec":106,"category":"Flow control","status":"Enabled","bip":"","description":"Mark the output provably unspendable; commonly used to embed up to 80 bytes of data."},{"word":"OP_TOALTSTACK","hex":"0x6b","dec":107,"category":"Stack","status":"Enabled","bip":"","description":"Move the top item to the alt stack."},{"word":"OP_FROMALTSTACK","hex":"0x6c","dec":108,"category":"Stack","status":"Enabled","bip":"","description":"Move the top alt-stack item back to the main stack."},{"word":"OP_2DROP","hex":"0x6d","dec":109,"category":"Stack","status":"Enabled","bip":"","description":"Remove the top two stack items."},{"word":"OP_2DUP","hex":"0x6e","dec":110,"category":"Stack","status":"Enabled","bip":"","description":"Duplicate the top two stack items."},{"word":"OP_3DUP","hex":"0x6f","dec":111,"category":"Stack","status":"Enabled","bip":"","description":"Duplicate the top three stack items."},{"word":"OP_2OVER","hex":"0x70","dec":112,"category":"Stack","status":"Enabled","bip":"","description":"Copy the pair of items two spaces back to the top."},{"word":"OP_2ROT","hex":"0x71","dec":113,"category":"Stack","status":"Enabled","bip":"","description":"Move the fifth and sixth items to the top."},{"word":"OP_2SWAP","hex":"0x72","dec":114,"category":"Stack","status":"Enabled","bip":"","description":"Swap the top two pairs of items."},{"word":"OP_IFDUP","hex":"0x73","dec":115,"category":"Stack","status":"Enabled","bip":"","description":"Duplicate the top item only if it is non-zero."},{"word":"OP_DEPTH","hex":"0x74","dec":116,"category":"Stack","status":"Enabled","bip":"","description":"Push the current number of stack items."},{"word":"OP_DROP","hex":"0x75","dec":117,"category":"Stack","status":"Enabled","bip":"","description":"Remove the top stack item."},{"word":"OP_DUP","hex":"0x76","dec":118,"category":"Stack","status":"Enabled","bip":"","description":"Duplicate the top stack item (core of P2PKH)."},{"word":"OP_NIP","hex":"0x77","dec":119,"category":"Stack","status":"Enabled","bip":"","description":"Remove the second-from-top item."},{"word":"OP_OVER","hex":"0x78","dec":120,"category":"Stack","status":"Enabled","bip":"","description":"Copy the second-from-top item to the top."},{"word":"OP_PICK","hex":"0x79","dec":121,"category":"Stack","status":"Enabled","bip":"","description":"Copy the n-th item (n from the top) to the top."},{"word":"OP_ROLL","hex":"0x7a","dec":122,"category":"Stack","status":"Enabled","bip":"","description":"Move the n-th item (n from the top) to the top."},{"word":"OP_ROT","hex":"0x7b","dec":123,"category":"Stack","status":"Enabled","bip":"","description":"Rotate the top three items."},{"word":"OP_SWAP","hex":"0x7c","dec":124,"category":"Stack","status":"Enabled","bip":"","description":"Swap the top two items."},{"word":"OP_TUCK","hex":"0x7d","dec":125,"category":"Stack","status":"Enabled","bip":"","description":"Copy the top item and insert it below the second item."},{"word":"OP_CAT","hex":"0x7e","dec":126,"category":"Splice","status":"Disabled","bip":"","description":"Concatenate two byte strings. Disabled for security in 2010."},{"word":"OP_SUBSTR","hex":"0x7f","dec":127,"category":"Splice","status":"Disabled","bip":"","description":"Return a substring. Disabled."},{"word":"OP_LEFT","hex":"0x80","dec":128,"category":"Splice","status":"Disabled","bip":"","description":"Return the left substring. Disabled."},{"word":"OP_RIGHT","hex":"0x81","dec":129,"category":"Splice","status":"Disabled","bip":"","description":"Return the right substring. Disabled."},{"word":"OP_SIZE","hex":"0x82","dec":130,"category":"Splice","status":"Enabled","bip":"","description":"Push the byte length of the top item (without popping it)."},{"word":"OP_INVERT","hex":"0x83","dec":131,"category":"Bitwise logic","status":"Disabled","bip":"","description":"Bitwise NOT. Disabled."},{"word":"OP_AND","hex":"0x84","dec":132,"category":"Bitwise logic","status":"Disabled","bip":"","description":"Bitwise AND. Disabled."},{"word":"OP_OR","hex":"0x85","dec":133,"category":"Bitwise logic","status":"Disabled","bip":"","description":"Bitwise OR. Disabled."},{"word":"OP_XOR","hex":"0x86","dec":134,"category":"Bitwise logic","status":"Disabled","bip":"","description":"Bitwise XOR. Disabled."},{"word":"OP_EQUAL","hex":"0x87","dec":135,"category":"Bitwise logic","status":"Enabled","bip":"","description":"Push 1 if the top two items are byte-equal, else 0 (core of P2SH)."},{"word":"OP_EQUALVERIFY","hex":"0x88","dec":136,"category":"Bitwise logic","status":"Enabled","bip":"","description":"OP_EQUAL then OP_VERIFY \u2014 fail unless the top two items are equal."},{"word":"OP_RESERVED1","hex":"0x89","dec":137,"category":"Reserved","status":"Reserved","bip":"","description":"Invalidates the script if executed."},{"word":"OP_RESERVED2","hex":"0x8a","dec":138,"category":"Reserved","status":"Reserved","bip":"","description":"Invalidates the script if executed."},{"word":"OP_1ADD","hex":"0x8b","dec":139,"category":"Arithmetic","status":"Enabled","bip":"","description":"Add 1 to the top number."},{"word":"OP_1SUB","hex":"0x8c","dec":140,"category":"Arithmetic","status":"Enabled","bip":"","description":"Subtract 1 from the top number."},{"word":"OP_2MUL","hex":"0x8d","dec":141,"category":"Arithmetic","status":"Disabled","bip":"","description":"Multiply the top number by 2. Disabled."},{"word":"OP_2DIV","hex":"0x8e","dec":142,"category":"Arithmetic","status":"Disabled","bip":"","description":"Divide the top number by 2. Disabled."},{"word":"OP_NEGATE","hex":"0x8f","dec":143,"category":"Arithmetic","status":"Enabled","bip":"","description":"Flip the sign of the top number."},{"word":"OP_ABS","hex":"0x90","dec":144,"category":"Arithmetic","status":"Enabled","bip":"","description":"Absolute value of the top number."},{"word":"OP_NOT","hex":"0x91","dec":145,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if the top number is 0, else 0."},{"word":"OP_0NOTEQUAL","hex":"0x92","dec":146,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 0 if the top number is 0, else 1."},{"word":"OP_ADD","hex":"0x93","dec":147,"category":"Arithmetic","status":"Enabled","bip":"","description":"Add the top two numbers."},{"word":"OP_SUB","hex":"0x94","dec":148,"category":"Arithmetic","status":"Enabled","bip":"","description":"Subtract the top number from the second."},{"word":"OP_MUL","hex":"0x95","dec":149,"category":"Arithmetic","status":"Disabled","bip":"","description":"Multiply the top two numbers. Disabled."},{"word":"OP_DIV","hex":"0x96","dec":150,"category":"Arithmetic","status":"Disabled","bip":"","description":"Divide. Disabled."},{"word":"OP_MOD","hex":"0x97","dec":151,"category":"Arithmetic","status":"Disabled","bip":"","description":"Modulo. Disabled."},{"word":"OP_LSHIFT","hex":"0x98","dec":152,"category":"Arithmetic","status":"Disabled","bip":"","description":"Left bit-shift. Disabled."},{"word":"OP_RSHIFT","hex":"0x99","dec":153,"category":"Arithmetic","status":"Disabled","bip":"","description":"Right bit-shift. Disabled."},{"word":"OP_BOOLAND","hex":"0x9a","dec":154,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if both numbers are non-zero, else 0."},{"word":"OP_BOOLOR","hex":"0x9b","dec":155,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if either number is non-zero, else 0."},{"word":"OP_NUMEQUAL","hex":"0x9c","dec":156,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if the two numbers are equal, else 0."},{"word":"OP_NUMEQUALVERIFY","hex":"0x9d","dec":157,"category":"Arithmetic","status":"Enabled","bip":"","description":"OP_NUMEQUAL then OP_VERIFY."},{"word":"OP_NUMNOTEQUAL","hex":"0x9e","dec":158,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if the two numbers are not equal, else 0."},{"word":"OP_LESSTHAN","hex":"0x9f","dec":159,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if the second number is less than the top."},{"word":"OP_GREATERTHAN","hex":"0xa0","dec":160,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if the second number is greater than the top."},{"word":"OP_LESSTHANOREQUAL","hex":"0xa1","dec":161,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if the second number is \u2264 the top."},{"word":"OP_GREATERTHANOREQUAL","hex":"0xa2","dec":162,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if the second number is \u2265 the top."},{"word":"OP_MIN","hex":"0xa3","dec":163,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push the smaller of the top two numbers."},{"word":"OP_MAX","hex":"0xa4","dec":164,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push the larger of the top two numbers."},{"word":"OP_WITHIN","hex":"0xa5","dec":165,"category":"Arithmetic","status":"Enabled","bip":"","description":"Push 1 if x is within [min, max)."},{"word":"OP_RIPEMD160","hex":"0xa6","dec":166,"category":"Cryptography","status":"Enabled","bip":"","description":"Hash the top item with RIPEMD-160."},{"word":"OP_SHA1","hex":"0xa7","dec":167,"category":"Cryptography","status":"Enabled","bip":"","description":"Hash the top item with SHA-1."},{"word":"OP_SHA256","hex":"0xa8","dec":168,"category":"Cryptography","status":"Enabled","bip":"","description":"Hash the top item with SHA-256."},{"word":"OP_HASH160","hex":"0xa9","dec":169,"category":"Cryptography","status":"Enabled","bip":"","description":"SHA-256 then RIPEMD-160 (address hashing)."},{"word":"OP_HASH256","hex":"0xaa","dec":170,"category":"Cryptography","status":"Enabled","bip":"","description":"Double SHA-256 of the top item."},{"word":"OP_CODESEPARATOR","hex":"0xab","dec":171,"category":"Cryptography","status":"Enabled","bip":"","description":"Mark the point from which signature checks cover the script."},{"word":"OP_CHECKSIG","hex":"0xac","dec":172,"category":"Cryptography","status":"Enabled","bip":"","description":"Verify a signature against a public key over the transaction."},{"word":"OP_CHECKSIGVERIFY","hex":"0xad","dec":173,"category":"Cryptography","status":"Enabled","bip":"","description":"OP_CHECKSIG then OP_VERIFY."},{"word":"OP_CHECKMULTISIG","hex":"0xae","dec":174,"category":"Cryptography","status":"Enabled","bip":"","description":"Verify m-of-n signatures (consumes one extra item \u2014 the off-by-one bug)."},{"word":"OP_CHECKMULTISIGVERIFY","hex":"0xaf","dec":175,"category":"Cryptography","status":"Enabled","bip":"","description":"OP_CHECKMULTISIG then OP_VERIFY."},{"word":"OP_NOP1","hex":"0xb0","dec":176,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_CHECKLOCKTIMEVERIFY (OP_NOP2)","hex":"0xb1","dec":177,"category":"Locktime","status":"Enabled","bip":"BIP65","description":"Fail unless the output is spent at or after an absolute time\/height (CLTV)."},{"word":"OP_CHECKSEQUENCEVERIFY (OP_NOP3)","hex":"0xb2","dec":178,"category":"Locktime","status":"Enabled","bip":"BIP112","description":"Fail unless a relative lock-time has elapsed (CSV)."},{"word":"OP_NOP4","hex":"0xb3","dec":179,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_NOP5","hex":"0xb4","dec":180,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_NOP6","hex":"0xb5","dec":181,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_NOP7","hex":"0xb6","dec":182,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_NOP8","hex":"0xb7","dec":183,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_NOP9","hex":"0xb8","dec":184,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_NOP10","hex":"0xb9","dec":185,"category":"Reserved (NOP)","status":"Reserved","bip":"","description":"Upgradeable no-op reserved for a future soft fork."},{"word":"OP_CHECKSIGADD","hex":"0xba","dec":186,"category":"Cryptography","status":"Tapscript","bip":"BIP342","description":"Tapscript-only: verify a signature and add 1 to an accumulator (batch multisig)."}]}