image Image
Convert Image Image to Base64 Converter
descriptionText
Compare textText to Hex Text to Base64 Word CounterCase ConverterVietnamese Accent Remover & Slug GeneratorRegex Tester
Json
Json to Excel/Csv JSON ⇄ YAML ConverterJSON to TypeScript, C# & Go
table_chartExcel
Excel/Csv to Json Excel/Csv to Sql Excel/Csv to Html
scheduleTime
Convert datetime Timezone Info
Url
Encode and Decode URLs Shorten URL
smart_displayVideo
Download Youtube
Sql
Statistics Parser Statistics Compare
SEO
Create Sitemap
listFormatter
Json FormatterXML FormatterCSS FormatterHtml FormatterJs FormatterSql FormatterException Formatter
listOther
Convert TokenConvert HashColor PickerGenerate PasswordQR Code GeneratorQR Code ScannerVietQR Bank Transfer QR GeneratorUUID / ULID / NanoID GeneratorNumber Base Converter
searchSearch
Search tools
codeTracer
C# Tracer Formatter
help_outlineAbout
About UsPrivacy PolicyTerms of Service
THUTOOL
other tool Statistics Parser keyboard_double_arrow_right Json Formatter keyboard_double_arrow_right C# Tracer Formatter keyboard_double_arrow_right

Number Base Converter

🔒 Processed 100% in your browser – your data never leaves your device

How to convert between binary, octal, decimal and hex

Type a number in any field and all the other fields update instantly. The converter uses JavaScript BigInt, so there is no size limit and no rounding, even for 128-bit or larger values. All work happens in your browser; nothing is sent to a server.

  1. Enter a value in Binary, Octal, Decimal, Hexadecimal or the Custom field.
  2. For the custom field, set any base from 2 to 36 (digits 0–9 then a–z).
  3. Click Copy next to the result you need.

Supported input

  • Prefixes 0x, 0b and 0o are accepted in the matching field. In the decimal field a prefix switches the base, so you can paste 0xFF there directly.
  • Underscores and spaces are ignored, e.g. 1111_0000 or de ad be ef.
  • Negative numbers are supported with a leading -.
  • Hex letters are case-insensitive; tick Uppercase letters to display them in uppercase.
  • Tick Group digits to show binary in groups of 4 (nibbles) and hex in groups of 2 (bytes).

If a field contains a digit that is not valid for its base, such as 2 in binary, an error is shown under that field and the other fields keep the last valid value.

FAQ

How are negative numbers shown? With a minus sign (sign-magnitude), not as two's complement.

Is there a maximum value? No practical limit: BigInt handles integers of any length.

Related tools

  • Convert TokenDecode JWT tokens to inspect header, payload and signature. Your token is decoded in the browser and never sent to a server.
  • Convert HashGenerate MD5, SHA-256, SHA-512, SHA-3, RIPEMD and HAVAL hashes from text. Common algorithms are computed right in your browser.
  • Color PickerA color picker simplifies the process of selecting colors for your website's meta attributes. It offers a user-friendly interface with options to choose from a wide range of colors, making it easy to find the perfect shade. With its intuitive design and precise color selection tools, integrating a color picker into your meta tags streamlines the customization process, ensuring your website's design is visually appealing and cohesive.
  • Generate PasswordGenerate strong random passwords with a cryptographically secure generator. Choose length and character types. Runs in your browser.
  • QR Code GeneratorCreate QR codes from text or URLs, choose size and error correction, and download as PNG or SVG. Free and runs in your browser.
  • QR Code ScannerScan QR codes with your camera or decode a QR image online. Free QR code reader that processes images in your browser.
@Made by THUTOOL