Microdeck.tools 100% In-Browser

BigInt Base Converter & IEEE-754 Float Inspector

New

Low-level systems programming companion without 53-bit JavaScript integer truncation. Uses native `BigInt` for unlimited-length integer conversions plus 32-bit/64-bit Two's Complement masks, and visualizes exact IEEE-754 single/double floating-point sign, exponent, mantissa bits, and stored decimal precision.

100% In-Browser No Server Storage Instant Results

Arbitrary-Precision Integer Base Converter

Decimal (Base 10)
4294967295
Hexadecimal (Base 16)
0xFFFFFFFF
Binary (Base 2)
11111111111111111111111111111111
Octal (Base 8)
37777777777
Two's Complement 32-bit
11111111111111111111111111111111
Two's Complement 64-bit
0000000000000000000000000000000011111111111111111111111111111111

IEEE-754 Floating-Point Bit Inspector

Sign: 0Exponent (unbiased -4): 01111011Mantissa: 10011001100110011001101
Hex Representation
0x3DCCCCCD
Stored Value
0.10000000149011612
Category
Normal

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

How It Works Under the Hood

Integer parsing converts base `2`, `8`, `10`, and `16` strings (ignoring optional prefixes like `0x`/`0b`/`0o` and `_` separators) into native JavaScript `BigInt`, masking modular 32-bit/64-bit Two's Complement registers. Float inspection uses a typed `DataView` over `Float32Array` / `Float64Array` buffers to read raw IEEE-754 bit fields directly.

Step-by-Step Instructions

1

Select your input integer radix (`Base 10`, `16`, `2`, or `8`) and enter a positive or negative value.

2

Copy Base 2, 8, 10, 16, or 32-bit/64-bit Two's Complement representations.

3

In the lower panel, select `Float32` or `Float64` and type any decimal or special value (`0.1`, `-3.14`, `Infinity`).

4

Inspect the color-coded Sign bit, Biased/Unbiased Exponent, Mantissa bits, Hex word, and exact stored decimal.

Key Features & Performance

  • True `BigInt` arithmetic handles 64-bit, 128-bit, and 256-bit integers with zero precision loss
  • Instant 32-bit and 64-bit Two's Complement binary representations for signed negatives
  • Visual Sign / Exponent / Mantissa bit breakdown for both Float32 and Float64
  • Exposes exact stored IEEE-754 rational values (why `0.1 + 0.2 !== 0.3` in binary floating point)
  • Supports underscore digit grouping (`0xFF_FF_00_01`) and copy buttons per field

Methodology, Formulas & Technical Standards

IEEE-754 inspection copies the numeric operand into an IEEE `DataView` via `setFloat32` / `setFloat64` and extracts unsigned bit fields (`getUint32` / `getBigUint64`) with explicit unbiased exponent offset calculation (`-127` for Float32, `-1023` for Float64).

Common Real-World Use Cases

  • Debugging embedded firmware registers, C/Rust integer overflows, and bitmasks
  • Understanding why `0.1` becomes `0.10000000149011611938...` in 32-bit floats
  • Decoding raw 8-byte sensor telemetry hex strings or protocol endianness values
  • Computer Architecture homework checking Two's Complement and normalized vs subnormal floats

Worked Examples & Edge Cases

Why 0.1 Cannot Be Exact in Binary Float32

Input
Float32: 0.1
Output
Sign: 0 | Exponent (-4): 01111011 | Hex: 0x3DCCCCCD | Stored: 0.10000000149011612

Repeating binary fraction rounds at the 24th significand bit.

Signed Negative Two's Complement

Input
Decimal: -1
Output
32-bit: 11111111111111111111111111111111

All bits set under 32-bit unsigned modular representation (`2^32 - 1`).

Limitations, Scope & Accuracy Notes

  • • Integer conversion expects discrete integer strings rather than fractional binary/hex points (`0x1.8p0`); use the Float Inspector for fractional values.
  • • Display hex words follow standard big-endian bit-sequence ordering.

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. BigInt Base Converter & IEEE-754 Float Inspector runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

Does JavaScript truncate 64-bit integers over 2^53 - 1 here?

No. The Integer Converter parses strings directly into `BigInt`, preserving full precision far beyond 64 or 256 bits.

How are signed negative numbers shown in Two's Complement?

Negative BigInts are masked via `BigInt.asUintN(32, value)` and `BigInt.asUintN(64, value)` and padded to full 32- or 64-bit register widths.

Can I test `Infinity`, `-Infinity`, or `NaN`?

Yes. Typing `Infinity` or `NaN` displays all-ones exponent bits and classifies the float automatically.

Are underscore separators allowed when pasting binary or hex?

Yes. Underscores and spaces (like `0b1111_0000`) are stripped automatically.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.