Tool 022

Base converter

Convert integers between binary, octal, decimal, and hexadecimal with exact precision. Everything happens in your browser.

Number

Input

Digit separators (_) and a matching prefix (0x, 0b, 0o) are accepted. Negative integers work too.

Conversions

4 bases
  1. Binary-
    0b
  2. Octal-
    0o
  3. Decimal-
    —
  4. Hexadecimal-
    0x