Base Converter
Convert numbers between binary, octal, decimal and hexadecimal.
How Base Converter works
Convert a number between bases 2, 8, 10, 16 and 36, with validation for invalid digits. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
Any base between 2 and 36
The converter takes a number in one base and expresses it in another, using 0–9 and A–Z for digits beyond nine. Base 2, 8, 10 and 16 are the common ones; base 36 is used for compact identifiers because it fits 36 symbols into alphanumeric characters.
Conversion is exact for integers of any size the browser can hold, so there is no rounding to worry about.
Reading hex without counting
Each hexadecimal digit is exactly four binary bits, so hex is a shorthand for binary: 1100 1010 is CA. Each octal digit is three bits. That is why those bases appear wherever bit patterns matter.
Base 36 has no such relationship — it is purely a compact alphabet, which is why it appears in short URLs rather than in memory dumps.
| Base | Digits | Used for |
|---|---|---|
| 2 | 0–1 | Bit patterns |
| 8 | 0–7 | Unix permissions |
| 16 | 0–9 A–F | Colours, memory, hashes |
| 36 | 0–9 A–Z | Short IDs |
What it does not handle
Fractions and negative numbers are not converted; the input is treated as a non-negative integer. A leading 0x is accepted for hex, but other prefixes are not.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Does it support negative numbers?
No — only unsigned values are handled here.
Why does my input fail?
Each base only accepts its own digits: base 2 accepts 0–1, base 8 accepts 0–7, and so on.
Is the letter case significant?
No, a and A are the same digit.
Can I convert very large numbers?
Up to JavaScript's safe integer limit, beyond which precision is lost.
Keep going
More encoding tools
Roman Numerals
Translate between numbers and Roman numerals, including subtractive forms like IV and CM.
Open toolBase32 Encoder
Encode text to Base32 or decode Base32 back to text using the standard alphabet.
Open toolBase64 Encoder
Encode or decode Base64 text and files instantly. Unicode safe, no upload, no server involved.
Open toolMorse Code Translator
Translate text into Morse code and decode dots and dashes back into text, including numbers and punctuation.
Open toolBinary Translator
Translate text into 8-bit binary and decode binary strings back into readable text.
Open toolURL Encoder
Encode text as a URL component or a full URL, and decode percent-encoded links back to plain text.
Open tool