LocalExcelTool
Get started

Number Base Converter

Convert between binary, octal, decimal and hexadecimal.

What is Number Base Converter

A number base converter switches a number between binary, octal, decimal and hexadecimal representations, commonly used in programming and networking.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Radix conversion, with arbitrary precision where it matters

Any base from 2 to 36 is supported; digits above 9 are letters a–z, and case is not significant on input. The conversion is done with BigInt rather than Number, because JavaScript's Number loses integer precision above 2^53 — a 20-digit hexadecimal value would otherwise come back with its last digits rounded to zeros.

That precision boundary is not theoretical. Snowflake IDs, Ethereum wei amounts, and Bitcoin satoshi values all exceed 2^53 routinely, and a conversion that goes through Number silently returns a different number. BigInt handles them exactly, at the cost of working with strings rather than numbers.

The prefixes and the invalid digits

Input is read as digits in the stated base, with an optional 0x, 0b or 0o prefix for hexadecimal, binary and octal. Reading '010' as decimal 10 rather than octal 8 is the modern convention; older JavaScript parseInt treated a leading zero as octal, which is why some legacy systems still disagree about the same literal.

A digit outside the base is rejected rather than guessed at. '19' in base 8 is an error, not 17. Where a tool silently accepts it — by clamping to the largest digit, for example — the result is a plausible number that is simply wrong, which is harder to notice than a message.

Reading base-36 and base-62 output

Base 36 is what JavaScript's toString(36) produces — digits plus lowercase letters, no symbols. Bases above 36 are not expressible with a single case-insensitive alphabet, so implementations that offer base 62 pick a case-sensitive alphabet, and those alphabets differ between libraries. Never decode a base-62 value without knowing whose alphabet produced it.

For any base above 36, treat the string as opaque and use the same library on both ends. Round-tripping through a documented conversion is safe; hand-rolling one against an undocumented alphabet is how IDs are silently corrupted.

How to use

  1. 1.Enter a number
  2. 2.Pick input and output bases
  3. 3.Copy the result

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveOutput is deterministic — verify it against any other implementationThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

Which bases are supported?

Binary (2), octal (8), decimal (10) and hexadecimal (16).

Does it handle large numbers?

It converts values within JavaScript's safe integer range accurately.

What this kind of conversion cannot keep

Encoding and hashing run through the browser's Web Crypto API or a pure-JavaScript implementation. The output is deterministic: the same input always produces the same digest, so you can verify a result against any other tool.

More in Encoding