Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal. The result updates as you type.
Input
Conversion
Output
Private by design
This conversion runs entirely in your browser. Your text is not sent to a server.
Tip
Spaces are ignored. Hex digits A–F are accepted in either case. The output is uppercase.
How to convert with Number Base Converter
Paste a number in the source base (decimal, binary, octal, or hex).
The converted value updates as you type — nothing is uploaded.
Choose a conversion such as Decimal → Hex or Hex → Binary.
Copy the result, or use it as the next input.
When should you use it?
Bases
Move between binary, octal, decimal, and hexadecimal in one step.
Hex
Read or write 0x-style values without a calculator.
Bits
See the binary form of a decimal or hex integer.
Stays here
Conversion runs in this tab. Nothing is uploaded.
Your numbers stay private.
Base conversion runs entirely in your browser. Values never leave this tab.
About converting number bases in the browser
Number Base Converter moves an integer between decimal, binary, octal, and hexadecimal as you type. Spaces are ignored. Hex digits A–F are accepted in either case; output is uppercase. This is integer conversion, not UTF-8 hex dumps — Hex Encode / Decode is the sibling for text bytes. It is not IEEE floating point and not two’s-complement bitfields beyond what the integer parser accepts.
Worked example: 255 decimal is FF hex and 11111111 binary. 0x10 as hex input is 16 decimal. Invalid digits for the source base show an error instead of a guessed value.
Related: Color Converter for #RRGGBB, Hash Generator for digests, Hex Encode for strings. Nothing is uploaded. Pick a conversion such as Decimal → Hex on the page; Convert to is not a second integer.
Related developer tools
Hex Encode / Decode
Convert text to hexadecimal bytes, or hex back to UTF-8. Type or paste below — the result updates as you type.
Color Converter
Convert colors between HEX, RGB, and HSL. Type or paste below — all three formats update as you type.
Random Number Generator
Generate random integers in a range using Web Crypto. Results appear instantly. Use Regenerate to draw again.
Hash Generator
Generate SHA-1, SHA-256, SHA-384, or SHA-512 hashes using various encodings. Hashing is commonly used to verify integrity and fingerprint data.
UUID Generator
Generate UUIDs instantly in your browser. Free, private, and no signup required.
Number Base Converter examples
Decimal → Hex
Decimal → Binary
Hex → Decimal
Base comparison
| Conversion | Example | Typical use |
|---|---|---|
| Decimal → Hex | FF | CSS colors, memory dumps, and byte values |
| Decimal → Binary | 11111111 | Bit flags, masks, and low-level checks |
| Hex → Decimal | 255 | Turn a hex dump back into a decimal integer |
Number Base Converter FAQ
Binary, octal, decimal, and hexadecimal. Choose a conversion (for example Decimal → Hex). The result updates as you type. Spaces are ignored; hex letters can be upper or lower case.