Convert Any Number to Any Base
Convert any number in any base to any other base. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Convert Any Number to Any Base
- 1. Paste the number to convert. Enter the value you want to convert into the input pane, using the digits and letters valid in whatever base it's currently written in.
- 2. Set the From base and To base. Enter the base your input is written in under From base, then the base you want as output under To base. Any base from 2 up to 36 is supported.
- 3. Copy the converted number. Copy the result, such as 11111111 for decimal 255 converted to base two, into your code, worksheet or documentation.
When to use Convert Any Number to Any Base
Convert Any Number to Any Base handles conversions that go beyond the common binary, octal, decimal and hex pairs. Anytime you're working with an unusual radix, like base 36 for a short URL scheme or base 20 for a historical numbering system, this tool does the digit-by-digit math for you.
- Building a short URL encoder. A link shortener maps database IDs into compact base 36 strings using digits and letters. Converting a decimal ID to base 36 shows you exactly what slug it should generate.
- Working with a non-standard protocol field. A binary protocol or legacy file format encodes a length or offset in base 7 or base 12 for historical reasons. Converting it to decimal makes the value readable.
- Verifying a base conversion assignment. A discrete math course asks you to convert a number between two arbitrary bases, like base 5 to base 13. This tool checks your manual working before you submit.
- Exploring numbers in unusual bases. You're curious what a familiar number, like your birth year, looks like written in base 3 or base 17. Setting the From and To base fields answers that instantly.
Examples
Decimal to binary
Input
255
Output
11111111
Binary to octal (from base 2, to base 8)
Input
1010
Output
12
Base 36 to decimal (from base 36, to base 10)
Input
zz
Output
1295
About the Convert Any Number to Any Base tool
Convert Any Number to Any Base runs as plain JavaScript in your browser tab, with no server behind it. Convert any number in any base to any other base. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's Number Tools section, 194 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 2 settings, including From base and To base, and the result refreshes the moment you change one. 3 worked examples further down the page show exactly what the tool produces for real inputs.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Does Convert Any Number to Any Base cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All Number Tools →Change a Number's Base
Quickly convert a number from one base to any other base.
Convert a Decimal Number to Hex Number
Convert a base ten number to base sixteen number.
Convert a Hex Number to Decimal Number
Convert a base sixteen number to base ten number.
Convert a Decimal Number to Binary Number
Convert a base ten number to base two number.