Mello
{} Developer

Number Base Converter

Convert a number between binary, octal, decimal, hex, and any base 2–36.

Runs in your browserNo account requiredNo uploadFree
Loading tool…

About Number Base Converter

Number Base Converter shows a single integer simultaneously in binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), and any custom radix from 2 to 36. Change any field and the others update to match — the right setup for the everyday work of cross-checking a hex constant against its bit pattern, pasting a decimal value into a tool that expects binary, or sanity-checking a permission mask.

Worked example: type 255 with the input base set to Decimal and the converter shows 11111111 (binary), 377 (octal), 255 (decimal), and ff (hex). Type 0xff with any base selected and the 0x prefix is auto-detected as hex (0b and 0o work the same way for binary and octal). For bases above 16, letters A–Z stand for digits 10–35 — the same scheme JavaScript's parseInt and Java's Integer.parseInt use. Base 36, with the alphabet 0–9 + a–z, is the most compact representation that still uses only ASCII letters and digits.

Conversion is done with arbitrary-precision integers (BigInt), so there is no 64-bit overflow and no floating-point rounding — a 200-digit number converts exactly. Negative integers are supported (a leading minus sign round-trips correctly), and the input is case-insensitive (A and a both mean 10). For two's-complement bit-fiddling at a specific width (8-, 16-, 32-, 64-bit) you want a different tool.

Everything runs locally in your browser. Nothing about the value you convert is logged or uploaded.

Frequently asked questions

Arbitrarily large. It uses BigInt internally, so there is no 64-bit overflow and no floating-point rounding — a 200-digit number is still exact.

More developer tools

JSON Formatter & Validator
Paste JSON to format, validate, or minify — runs entirely in your browser.
{}Developer
Base64 Encoder / Decoder
Encode to Base64 or decode it back — handles UTF-8 correctly.
{}Developer
JSON ↔ CSV Converter
Convert between JSON and CSV — round-trip safe, runs locally.
{}Developer
Regex Tester
Build and test JavaScript regular expressions with live highlighting.
{}Developer
UUID / GUID Generator
Generate cryptographically random UUID v4 identifiers.
{}Developer
JSON ↔ YAML Converter
Switch between JSON and YAML — useful for Kubernetes, CI configs, and API specs.
{}Developer