Bit numbering and bit order

Every bit of a value with its weight and its number under LSB 0, MSB 0 and 1-based numbering, the field you name as bits i to j, the value bit-reversed and in the order a link sends it, a printed bit string read in the order it was printed, and a MAC address in canonical and bit-reversed form, with the I/G and U/L bits named. Layouts for the LACP state, the TCP flags, the DNS flags, the ToS octet and the 802.1Q tag.

Networking

Kept in this browser · My desk

Hexadecimal needs 0x and binary 0b; plain digits are decimal, and a minus sign gives the two's complement bits.

Read the value as

No layout: just the bits and their numbers.

Numbering of the field

Optional: give bits i to j in the numbering above to get the field's mask, shift and value; leave the second blank for one bit.

Runs locally in your browser. Nothing is sent anywhere.

Type a value, or press Example for the DNS answer flags 0x81A0.

API endpointGEThttps://ronutz.com/api/v1/bit-numbering-and-orderDocumented, not served. Opens the specification.

References