Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Developer Utilities

Number Base Converter

Convert a whole number from one radix to another, base 2 through base 36, using BigInt so there is no size limit. Accepts an optional 0x / 0o / 0b prefix and a leading minus sign, and ignores underscores, spaces and separators in the input.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

Converting between any two radices

Enter a whole number and pick a source and target base between 2 and 36. The value is parsed digit by digit into a BigInt and written back out in the target base, so nothing is ever narrowed to a 53-bit floating-point number. Base 36 uses the digits 0-9 followed by a-z, which makes the tool useful for short identifiers as well as binary and hexadecimal work.

Prefixes and ignored separators

A leading 0x, 0o or 0b prefix overrides the From base setting and selects hexadecimal, octal or binary, while a leading minus or plus sign sets the sign. Underscores, spaces, commas and apostrophes are stripped before parsing, so 1_000_000 or 1,000,000 can be pasted straight from source code or a spreadsheet without cleaning them first.

Output formatting options

Add prefix rewrites the result with 0x, 0o or 0b when the target is base 16, 8 or 2 — other bases are left plain. Group digits inserts a space every four characters counted from the right, which makes long binary and hexadecimal values far easier to read at a glance.

Rejected digits are named

A character that is not a valid digit for the selected source base stops the conversion with a message naming the offending character, rather than truncating the value silently. Negative zero is normalised to a plain zero, and the tool never evaluates expressions — digits only.

No size limit, no upload

Because parsing uses BigInt the input length is bounded only by the text you paste; very long binary strings convert exactly. The calculation runs in this tab with no network request, so the number never leaves your browser.

Questions

How large a number can it handle?

Any size. Parsing and conversion use BigInt, so there is no 53-bit floating-point limit.

What input formats are accepted?

An optional leading minus sign, an optional 0x / 0o / 0b prefix, and digits 0-9 then a-z for values 10-35. Underscores, spaces, commas and apostrophes are stripped.

What happens if a digit is invalid for the chosen base?

The tool reports which character is out of range for the "from base" you selected.

See category