Free Number Base Converter (Binary, Hex, Octal, Decimal)
Type a number in any base · binary, octal, decimal, or hex · and see it converted to all the others instantly.
100% client-side · nothing you enter is ever sent to a server or stored.
Preview · sign in with a free account to run it
Conversion uses BigInt · arbitrarily large values (256-bit hashes, keys) convert without precision loss. Spaces and underscores in the input are ignored.
How to use it
- Type a number. Prefixes 0b, 0o and 0x are detected, or choose the input base.
- Read it in binary, octal, decimal and hexadecimal at once.
- Copy any value. Very large integers are exact.
Example
Input
255
Result
Binary 0b11111111 Octal 0o377 Decimal 255 Hexadecimal 0xff
Where you meet each base
- Hexadecimal
- Colours (#ff8800), byte values, hashes, memory addresses. Two hex digits are one byte.
- Octal
- Unix file permissions: chmod 755 is three octal digits.
- Binary
- Bit flags and masks. Each digit is one on/off bit.
- Big numbers
- Values beyond JavaScript's safe integer limit (2^53 − 1) are converted exactly with BigInt.
Go deeper
Page updated
Frequently asked questions
Why do developers use hexadecimal?
One hex digit is exactly four bits, so bytes read as clean two-character pairs · FF is 11111111. That's why memory addresses, color codes, hashes, and MAC addresses are written in hex.
How large a number can this handle?
Arbitrarily large · conversion uses BigInt rather than floating-point numbers, so 256-bit values (like hashes and keys) convert without precision loss.
Does it handle negative numbers?
Yes. A leading minus sign is kept in every base, for example -42 is -0x2a. It isn't converted to two's complement.
Want the full picture?
This tool covers one narrow check. A full SimplyScan runs 60 checks across 14 categories · exposed keys, RLS, XSS, auth, and speed · in 30 seconds.
Run a full security scanRelated tools
cURL to fetch
Paste a curl command · from API docs or your terminal · and get clean JavaScript fetch code with headers and body intact.
Markdown to HTML
Write or paste Markdown and get clean HTML plus a live preview · headings, lists, links, code blocks, and tables included.
XML Formatter
Paste XML · a sitemap, RSS feed, SVG, or API response · and pretty-print, minify, or validate it instantly.