We use cookies to understand how the site is used and to display ads. Analytics and advertising only run after you accept. You can change your choice anytime via the footer link or your browser settings. Privacy policy

Skip to content
>_devvkit

Number Base Converter

Convert numbers between binary, octal, decimal, hex, base-32, and base-64.

Binary (2)
0b11111111
Octal (8)
0o377
Decimal (10)
255
signed int32: 255
Hexadecimal (16)
0xff
32-bit bytes: 00 00 00 ff
Base-32 (32)
0v7v
Base-64 (64)
0z3undefined

Accepts 0x, 0b, and 0o prefixes and ignores whitespace. Uses BigInt arithmetic, so any size is exact. Signed and byte views apply to 32-bit values only.

//Share this tool

Convert numbers between binary, octal, decimal, hexadecimal, base-32, and base-64. See 32-bit byte breakdowns and signed integer interpretations.

[x]Features
  • -Convert between bases 2, 8, 10, 16, 32, and 64
  • -Accepts 0x, 0b, and 0o prefixes and whitespace
  • -32-bit byte view for hexadecimal values
  • -Signed int32 interpretation for decimal
  • -One-click copy for every result
  • -Runs entirely in your browser
>Use Cases
  • >Reading hex color codes and bit flags in decimal
  • >Converting memory addresses and offsets
  • >Decoding binary protocol fields
  • >Preparing literals for different programming languages

Frequently Asked Questions

>What bases are supported??
Binary (2), octal (8), decimal (10), hexadecimal (16), base-32, and base-64. You can convert between any of them.
>How large can the numbers be??
JavaScript integers are exact up to 2^53. Above that, conversions may lose precision — decimal arithmetic libraries are not bundled.