Initializing, please wait a moment

Type the value, choose the base it is currently in and the base you want, and the result updates live; use Swap to reverse the direction.

Values with a leading 0x, 0b, or 0o prefix are recognized automatically for the matching base, so pasted values just work. If a character does not belong in the chosen base, the tool names exactly which character and position is wrong instead of failing silently. Copy the result to your clipboard with one click.

Number Base Converter (Binary/Hex/Octal/Decimal)


Convert a number between binary, octal, decimal, and hexadecimal (or any custom base 2-36), right in the browser.

Custom bases from 2 to 36 are supported for less common conversions beyond the four common presets.

Conversion uses exact digit-by-digit BigInt arithmetic, not the native Number type, so values beyond 2^53 - 1 stay accurate instead of silently losing precision.

Nothing here handles negative numbers in two's-complement representation for an arbitrary bit width - only JavaScript's own signed-integer semantics for a leading minus sign. Everything runs in this browser tab; the value you type is never uploaded or stored.

← Back to Developer Tools

Related tools:

  • MD5 converter - Free online MD5 hash generator and MD5-to-text reverse lookup.
  • Convert PDF to TEXT online - Extract text from PDF online for copying and editing.
  • Text To HTML Editor - Text to HTML editor online - write in a WYSIWYG view and watch the generated HTML update live, with
  • CSS Gradient Animator Generator - CSS gradient generator - build animated linear gradients with live preview; copy ready-to-paste CSS
  • CSS Minifier - Minify CSS online for faster page loads.
  • CSS UnMinifier - CSS unminifier online - beautify minified CSS with proper indentation, line breaks, and readable
  • JavaScript Minifier - JavaScript minifier online free - paste your JS, click Minify, and copy the compressed code.
  • JSON Parser By Tree View - Paste JSON to validate, format, and view it in a tree.
  • JavaScript UnMinifier - JavaScript unminifier online - reformat minified JS with indentation and line breaks for
  • Keyboard Test - Keyboard test online - press each key to highlight it, spot non-working keys, and verify Num Lock,
  • Text Diff - Text diff online - compare two text blocks and highlight added, removed, and changed characters,
  • Developer Tools - Developer tools to parse JSON, minify or unminify CSS/JS, compare text, and generate MD5 hashes.

Tags: #developer

Related guides:

Loading reviews...

Frequently Asked Questions

What does Number Base Converter (Binary/Hex/Octal/Decimal) do?

Convert a number between binary, octal, decimal, and hexadecimal (or any custom base 2-36), right in the browser.

When should I reach for number base converter (binary/hex/octal/decimal)?

Custom bases from 2 to 36 are supported for less common conversions beyond the four common presets.

Does it handle negative numbers?

Only in JavaScript's signed-integer sense (a leading minus sign) - it does not represent negative numbers in two's-complement form for an arbitrary bit width.