CDCodDepot
Categories

Β© 2026 CodDepot. All rights reserved.

HomeCategoriesPrivacy PolicyTerms
  1. Home
  2. /
  3. Marine & Maritime Tools
  4. /
  5. Bitmask & Bitfield Decoder
🎚️

Bitmask & Bitfield Decoder

8/16/32/64-bit BigInt-safe bitmask editor with clickable bits and named-field decoding (signed/enum).

Share𝕏Post on XinLinkedIn
DEC
16
HEX
0x10
OCT
0o20
BIN
0b00000000000000000000000000010000

Bit grid (click any bit to toggle)

Named bitfields

No fields defined. Add one or load a preset.

Was this tool useful?

Your vote is saved on this device only.

About Bitmask & Bitfield Decoder

The Bitmask & Bitfield Decoder lets you inspect and edit raw integer values one bit at a time. Toggle individual bits by clicking them across 8, 16, 32, or 64-bit widths, then read the result back in binary, hex, and decimal. Using BigInt math, it handles full 64-bit values without precision loss, and it can break a value into named fields decoded as signed integers or enum labels, so you can see exactly what each segment of a packed register or status word means.

It is built for embedded developers, protocol engineers, and anyone working with marine and hardware data formats that pack flags and codes into integers. Instead of doing bit arithmetic by hand or trusting a calculator that overflows past 53 bits, you get an accurate, interactive view. It is completely free and runs entirely in your browser, so the values you decode never leave your machine.

How to use

  1. Select the bit width: 8, 16, 32, or 64 bits.
  2. Enter a value in hex or decimal, or click individual bits to toggle them on and off.
  3. Read the live binary, hex, and decimal output as the bits change.
  4. Define named fields with their bit ranges to decode packed values.
  5. Mark a field as signed or attach enum labels to translate raw codes into meaning.

Features

  • βœ“BigInt-safe 64-bit decoding without overflow
  • βœ“Clickable bits for instant toggling
  • βœ“Switch between 8, 16, 32, 64-bit widths
  • βœ“Named bitfield decoding with bit ranges
  • βœ“Signed integer and enum field interpretation
  • βœ“Live binary, hex, and decimal output

Frequently asked questions

Is my data uploaded anywhere?+

No. The decoder runs fully client-side in your browser, so every value and field definition stays on your device and nothing is sent to a server. It is free to use without an account.

Why use this instead of a standard programmer calculator?+

Many calculators rely on JavaScript numbers that lose accuracy beyond 53 bits, corrupting 64-bit values. This tool uses BigInt arithmetic so all 64 bits stay exact.

Can it decode signed values inside a field?+

Yes. You can flag any named field as signed, and the tool interprets the extracted bits using two's complement to show the correct negative or positive value.

How do enum fields work?+

Attach labels to specific numeric values for a field, and the decoder displays the matching label instead of a raw number, which is useful for status codes and type identifiers.

What bit widths are supported?+

You can work at 8, 16, 32, or 64 bits and switch between them at any time, with the bit grid and outputs updating to match the selected width.

Related tools

πŸ“‘

AIS Message Decoder

Decode AIS NMEA sentences (Types 1–3 position reports and Type 5 voyage data) at the bit level.

πŸ“»

AIS Message Encoder

Build a valid AIS Type 1 position report from form inputs with step-by-step encoding.

🧭

NMEA 0183 Sentence Parser

Auto-detect and decode 17+ NMEA 0183 sentence types with checksum validation.