Zero Signup ToolsFree browser tools

Converter Tools

Number Base Converter

Convert numbers between binary, octal, decimal, hex, and any base from 2 to 36 in your browser. Two's complement, BigInt, no upload.

Convert

Numbers between binary, octal, decimal, hex, and any base 2 to 36

Spaces and underscores are allowed as digit grouping. Optional literal prefixes like 0b, 0o, or 0x are accepted when they match the From base. A leading minus sign is allowed.

Any base from 2 to 36.

Quick samples

All bases

  • Binary (base 2)

    1111 1111

  • Octal (base 8)

    377

  • Decimal (base 10)

    255

  • Hexadecimal (base 16)

    FF

Two's complement

Useful for fixed-width signed integers in C, Rust, Go, and low-level work.

  • Binary (32-bit)

    0000 0000 0000 0000 0000 0000 1111 1111

  • Hex (32-bit)

    0x000000FF

How to use

  1. Type or paste a number into the input field.
  2. Pick the From base using a preset (binary, octal, decimal, hex) or any radix from 2 to 36.
  3. Switch between Show all bases for the four common bases at once, or Pick to base for a single custom radix.
  4. Read the converted values, two's complement representation, and stats. Click any Copy button to copy a result, or Swap to flip the conversion direction.

About this tool

Number Base Converter turns any integer into its binary, octal, decimal, and hexadecimal forms at once, and converts to any custom radix from 2 up to 36. Type a number in the From base, see it instantly in every common base with readable digit grouping (4 for binary, 3 for decimal and octal, 2 for hex), copy any result with one click, and use the Swap button to flip the conversion direction. The tool accepts the literal prefixes 0b, 0o, and 0x when they match the From base, allows spaces and underscores as digit separators (so 1010 1110 and FF_AA both work), and parses negative numbers with a leading minus. A two's complement panel shows the same value as a signed 8, 16, 32, or 64-bit integer, in both binary and hex, which is exactly what embedded developers, network engineers, and low-level programmers need when working with fixed-width registers, IP addresses, color components, file permissions, ASCII codes, or memory dumps. Calculations use BigInt, so very large numbers convert with arbitrary precision and never lose accuracy. Everything runs entirely in your browser, so the values you convert are never uploaded.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsConverter Tools