Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal

Base Converter — Instantly Convert Numbers Between Binary, Octal, Decimal, and Hexadecimal with Live Preview

  1. Enter your source number and select its current base from the dropdown: Binary (base-2) for sequences of 0s and 1s used in digital logic and computer memory addressing, Octal (base-8) for Unix file permissions and legacy systems, Decimal (base-10) for everyday human-readable numbers, or Hexadecimal (base-16) for color codes, memory addresses, and binary data shorthand. The input field uses a monospace font to make it easy to distinguish similar-looking characters like 0 and O or 1 and l.
  2. Select your target base from the lower dropdown — the tool supports all four bases in any combination, giving you 12 possible conversion paths: binary↔octal, binary↔decimal, binary↔hex, octal↔decimal, octal↔hex, and decimal↔hex in both directions. The interface is intentionally minimal — no clutter, no ads, just a focused conversion tool that updates your result the moment you change any input value.
  3. Read your converted result in the output field — it appears instantly as you type or change base selections. The output is displayed in uppercase for hexadecimal values (A–F) following standard programming convention. Copy the result directly from the read-only output field for use in your code, documentation, or debugging. All conversion happens entirely in your browser using JavaScript's built-in parseInt() and toString() methods — no server round-trip, no latency, and your numbers never leave your device.

Enable JavaScript to use these tools.