Related tools
- Escape / UnescapeEscape or unescape text in over thirty formats, from JSON, HTML, XML and URL to C, Python, shell, SQL, base64, ROT13, Morse and punycode.
- Language Code LookupLook up a language by ISO 639 code, English name, or native name, or a writing script by ISO 15924 code.
- Number to WordsSpell out a number in English words, including negative, decimal, ordinal, and currency forms, or convert words back into a number.
- Case ConverterConvert text into camelCase, snake_case, kebab-case, Title Case, UPPERCASE, and URL safe slugs all at once.
- Cipher ToolEncode and decode text with Caesar, ROT13, ROT47, Atbash, Vigenere, Affine, and Rail fence ciphers, plus a Caesar brute force scanner.
- Fancy Text GeneratorTurn plain text into bold, italic, script, fraktur, double-struck, circled, upside down, zalgo, and a dozen other Unicode text styles at once.
What it does
Converts integers between binary, octal, decimal, hexadecimal and base 36, using arbitrary-precision arithmetic so numbers of any size (not just 32 or 64 bit) round-trip exactly. Recognizes 0x, 0b and 0o prefixes automatically, or you can force a specific input base. Every result also shows a nibble-grouped bit pattern, the bit length, and the raw hex bytes for values that fit in 64 bits.
How to use it
Type or paste a number (with or without a base prefix like 0xFF, 0b1010 or 0o17) and every base updates at once. Pick an input base from the dropdown if your number is unprefixed and not decimal. Negative numbers are supported; each output row has its own copy button.
Why this one
Most base converters cap out at 32-bit integers and silently overflow on anything larger. This one uses BigInt throughout, so a 128-bit or 256-bit value converts exactly, with no ads and nothing sent off your device.
FAQ
- Does it handle numbers bigger than 64 bits?
- Yes, conversion uses BigInt, so values of arbitrary size (128-bit, 256-bit, or larger) convert exactly. The "Bytes" row only appears for values that fit in 64 bits, since it exists for quick byte-level inspection.
- How are negative numbers represented?
- As a sign followed by the magnitude in the target base (e.g. -0xff), not two's complement. The "Bits" row is the bit length of the magnitude alone.
- What happens if I paste an invalid digit for the selected base?
- You get an error naming the exact character and its position in your input, such as an "8" in a binary number, so you can fix it immediately.
Keyboard shortcuts: press ? anywhere on this page to see them.