tools

Number & Float Inspector

See any value as hex, binary and bytes; inspect int8–int64, fp16, bfloat16, fp32 and fp64 bit by bit.

[loading tool…]

How it works

  • Decimal input is converted by value: -1 as int8 is 0xFF (two’s complement), 0.1 as fp32 is the nearest float, 0x3DCCCCCD.
  • Prefixed input (0x…, 0b…, 0o…) is taken as the raw bit pattern, so you can paste a register or memory dump and see what it means as any type.
  • Click a bit to flip it; the input switches to the raw hex pattern.
  • Bytes in memory shows the order a little-endian MCU (Cortex-M, ESP32, RP2040, x86) or a big-endian wire format would store them.

Float formats

Format Sign Exponent Mantissa Bias Typical use
fp16 (half) 1 5 10 15 GPU inference, Cortex-M55 Helium
bfloat16 1 8 7 127 ML training: fp32 range, less precision
fp32 1 8 23 127 default float
fp64 1 11 52 1023 double, JavaScript numbers

A normal value is (−1)^sign × 1.mantissa × 2^(exponent − bias). Exponent 0 encodes zero and subnormals; all-ones encodes infinity and NaN. Conversions round to nearest, ties to even, like the hardware does.

References

esc
All tools
ADC / DAC Resolution Calculator[embedded]
Base64 Encoder / Decoder[dev]
Battery Runtime Calculator[hardware]
Chmod Calculator[dev]
CRC Calculator[embedded]
Cron Expression Builder[dev]
CSV ⇄ JSON Converter[dev]
Duty-Cycle Battery Life[embedded]
Generator Wattage Calculator[hardware]
Hash Generator[dev]
HTML Entity Encoder[dev]
JSON Formatter & Validator[dev]
JSONPath Tester[dev]
JWT Decoder[dev]
LED Resistor Calculator[embedded]
LLM Memory / VRAM Estimator[ai]
Lorem Ipsum Generator[text]
Markdown Preview[text]
Markdown Table Generator[text]
Number & Float Inspector[embedded]
Number to Words[text]
Ohm's Law Calculator[embedded]
Password Generator[dev]
Quantization Size Calculator[ai]
RC / LC Filter Calculator[embedded]
Regex Tester[dev]
Register / Bitfield Viewer[embedded]
Resistor Color Code[embedded]
Roman Numeral Converter[text]
Solar Battery Bank Sizing[hardware]
Solar Panel Output[hardware]
SQL Formatter[dev]
Subnet / CIDR Calculator[dev]
Tensor Shape Calculator[ai]
Timer / PWM Calculator[embedded]
UART Baud Rate Error[embedded]
Unix Timestamp Converter[dev]
UPS Runtime Calculator[hardware]
URL Encoder & Parser[dev]
UUID Generator & Inspector[dev]
Voltage Divider Calculator[embedded]
Voltage Drop Calculator[hardware]
Wire Size Calculator[hardware]
XML Formatter[dev]
YAML Validator & Converter[dev]
Commands
Toggle theme (auto → light → dark)
Copy link to this page
Go to all tools
Lire en français
↑↓ move↵ open⌘↵ new tab