Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, or any custom base. Includes a bit view and a step-by-step explanation.
Jump to section โพ
How to Use the Number Base Converter
Type or paste a number into any field โ binary, octal, decimal, hexadecimal, or the custom base โ and all other fields update instantly. Click individual bits in the visualization to toggle them and see how each bit position affects the value. Expand the step-by-step explanation to see the full conversion working. Use the 0โ255 reference table to look up common values quickly, or click any table row to load it into the converter.
About This Toolโพ
A number base (radix) converter with four primary bases shown simultaneously plus a configurable custom base. All fields are live โ editing any one instantly updates all others. Uses BigInt arithmetic for arbitrary-precision conversions. The interactive bit visualization shows the binary representation as clickable bit cells grouped into nibbles with hex labels, making it easy to understand how individual bits affect the value. A step-by-step explanation section shows the full division or positional-weight calculation for five conversion directions. Zero external libraries โ everything runs in your browser. Related: generate SHA-256 hashes when you need checksums rather than base conversion, percent-encode query parameters for URL-safe output, and handle trigonometry and logarithms for non-integer math.
Quick Reference Table
| Base | Name | Digits | Common Use |
|---|---|---|---|
| 2 | Binary | 0, 1 | Bit flags, bitmasks, low-level programming |
| 8 | Octal | 0โ7 | Unix file permissions, legacy systems |
| 10 | Decimal | 0โ9 | Everyday numbers, math, finance |
| 16 | Hexadecimal | 0โ9, AโF | Memory addresses, colors, byte values |
| 32 | Base 32 | 0โ9, AโV | Compact encoding, Crockford identifiers |
| 36 | Base 36 | 0โ9, AโZ | Short unique IDs, URL-safe encodings |
Frequently Asked Questions
How do I convert binary to hexadecimal quickly?
Group the binary digits into sets of four from the right, padding with leading zeros. Each group maps to one hex digit: 0000=0, 0001=1, โฆ 1010=A, 1011=B, 1100=C, 1101=D, 1110=E, 1111=F. For example, 10110100 splits into 1011 and 0100, giving 0xB4.
What is a nibble?
A nibble is 4 bits โ half a byte. It is the exact amount of information represented by a single hexadecimal digit, which is why hex and binary convert so cleanly.
Why does hexadecimal use letters?
Hex needs 16 unique symbols. After digits 0โ9, the letters A through F represent values 10 through 15. Both uppercase and lowercase are valid.
What does twoโs complement mean?
Twoโs complement is how computers represent negative integers. The most significant bit acts as a sign bit. To find the negative of a number, invert all bits and add 1. For example, -1 in 8-bit twoโs complement is 11111111 (255 unsigned).
Does the Number Base Converter transmit any input to a server?
No. All base conversions (binary, octal, decimal, hexadecimal, and custom bases up to 36) are computed in your browser using native BigInt arithmetic, which handles arbitrarily large integers with full precision. Your input numbers and converted results never leave your device.
Created by The Toobits Team ยท Engineering & Editorial
Toobits is built, tested, and maintained by a small independent engineering team. Every tool is written in TypeScript, runs entirely in the browser, and is reviewed against its source formulas before publication.
Editorial policy ยท Updated April 2026
Related tools
Hand-picked companions that pair well with this tool.
Binary to Text Converter
Convert binary code to text and text to binary.
developer๐งฎScientific Calculator
Full scientific calculator with 50+ constants and calculation history.
calculators#Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text.
developerJSON Formatter
Format, validate, minify, and explore JSON with a tree view.
developerRegex Tester
Test regular expressions with real-time matching and capture groups.
developerURL Encoder / Decoder
Encode or decode special characters for URLs instantly.
developerMore from Developer Tools
Other tools in the same category.
Internet Speed Test
Test your internet download, upload speed, and latency.
developerIP Address Lookup
Look up geolocation, ISP, and network details for any IP.
developerCSV to JSON
Convert CSV data to JSON arrays or objects instantly.
developerMarkdown to HTML
Convert Markdown to clean HTML with live preview.
developerโฐCron Generator
Build and explain Unix cron schedule expressions visually.
developer๐จColor Palette Generator
Generate harmonious color palettes from any base color.
developer