Number base converter
Convert whole numbers between binary, octal, decimal, hex and any base from 2 to 36.
In other bases
- Binary (base 2)
Enter a number - Octal (base 8)
Enter a number - Decimal (base 10)
Enter a number - Hex (base 16)
Enter a number - Base 32
Enter a number - Base 36
Enter a number
Missing a feature or found a bug in Number base converter? Tell me on X (@_andrewtran) or by email.
How to use Number base converter
- Type or paste a number.
- Set the base the number is written in.
- Copy the value in the base you need.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Is there a size limit?
No practical one. Numbers of any length keep every digit, because the maths is done on whole numbers and not on floating point.
Can I include a prefix?
Yes. 0x for hex, 0b for binary and 0o for octal are accepted, as are spaces and underscores between digits.
Related tools
URL parser
Break a URL into protocol, host, port, path, query and fragment, with every parameter decoded.URL cleaner
Strip utm_, fbclid, gclid and other tracking parameters from links, and keep the ones that matter.Regex escape
Escape special characters so a piece of text matches literally inside a regular expression.SQL IN clause generator
Turn a list of values into a SQL IN (…) clause, quoted and with duplicates removed.