Skip to main content
StackDevLife

Developer Tool

Number Base Converter

Convert between Binary, Octal, Decimal, and Hexadecimal instantly. Supports 8 to 64-bit widths. Everything runs in your browser — nothing is sent to any server.

Bit width
Binary0bbase-2
Octal0obase-8
Decimalbase-10
Hexadecimal0xbase-16

How to use this tool

  1. 1

    Type in any base

    Click any of the four fields — Binary, Octal, Decimal, or Hexadecimal — and type or paste your number. All other fields update in real time.

  2. 2

    Choose a bit width

    Select 8, 16, 32, or 64-bit to match the data type you are working with. Values are masked to that width, matching how typed variables behave in C, Rust, TypeScript, and similar languages.

  3. 3

    Copy the result

    Click the Copy button on any field to copy its value to your clipboard. Binary output is copied without spaces for use in code.