Skip to content
Developer Handbook

Blockchain, P2P and zero-conf

Big-Endian

Big-endian byte ordering, also referred to as network byte ordering, is used in many places in the Bitcoin Cash protocol. While not always called out explicitly in this specification, it is called out when readers might be inclined to expect little-endian byte ordering.

In big-endian byte ordering, the most significant byte is first, following the second-most-significant, and so on. This is what many would consider the "natural" order in most circumstances.

For example, the value 5,000, when represented in big-endian format, would be the byte 0x13 followed by 0x88, while 5,001 would be the byte 0x13 followed by 0x89. Contrast this with little-endian.

For information, see Endianness.

Source and attribution

Documentation.cash (source repository) · Reference.cash (source repository)
Software Verde, Bitcoin Unlimited and the project contributors. Collection license CC BY 3.0 US. Individual notices are retained.
Source snapshot from November 29, 2026. BCH Ninja combined the community editions and updated navigation.