Number Base Converter
Convert between binary, octal, decimal and hexadecimal with exact BigInt precision.
100% private — everything runs in your browser
How to Use
- 1
Choose the base your number is written in.
- 2
Type the digits — invalid digits are flagged immediately.
- 3
Copy the value you need from the binary, octal, decimal or hex row.
Examples
Decimal → hex
Input
4095Output
0xfff · binary 111111111111Hex → decimal
Input
ffffOutput
65535FAQ
How large can the number be?
Values are parsed as BigInt, so 64-bit IDs and long hashes convert without rounding.
Are negative numbers supported?
Yes, a leading minus sign is preserved in every base.
Does the output include a prefix?
No, the output is plain digits so it can be pasted into code; add 0b, 0o or 0x yourself when you need one.
Related Tools
Base64 Encoder/DecoderEncode text to Base64 and decode Base64 back to text with full Unicode and emoji support — 100% in your browser.Hash GeneratorCompute MD5, SHA-1, SHA-256 and SHA-512 hashes of any text, entirely in your browser.JSON FormatterFormat, beautify, minify and validate JSON instantly — right in your browser.JSON ValidatorValidate JSON instantly and find syntax errors with the exact line, column and position — right in your browser.URL Encoder / DecoderEncode text for URLs with encodeURIComponent or encodeURI, and decode percent-encoded strings.Unix Timestamp ConverterConvert Unix timestamps to readable dates and back, with seconds and milliseconds support.