Skip to main content

Number Base Converter

Number base converter — binary, octal, decimal, hex, and any base 2-36. Bitwise too.

  • Runs locally
  • Category Calculator
  • Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.

Bases

Bit width:
Presets:

Custom base

Result:
3530

Bitwise operations

dec8
hex0x8
bin0b1000

All math runs on BigInt — exact up to thousands of digits. Values stay in your browser.

What this tool does

A precise, BigInt-powered number base converter that handles binary, octal, decimal, hexadecimal, and any custom radix from 2 to 36. The four primary fields are live-linked: edit one and the other three update instantly with validation, so you always see the same value in every base. Built-in bitwise calculator covers AND, OR, XOR, NOT, left shift, and right shift across 8/16/32/64-bit widths, with proper two's-complement padding for the binary view. Because every value is stored as a BigInt, conversions are exact up to thousands of digits — no silent precision loss above 2^53 like naive Number-based converters. One-click copy on every base, quick presets for common constants (255, 1024, 65535, 2^31), and full client-side execution mean your data never leaves the browser.

Tool details

Input
Text + Numbers
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
No account required
Open the page and use it; whether results survive refresh depends on the tool.
Performance budget
Initial JS <= 14 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Calculator · Student
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Number Base Converter fits into your work

Use it for fast estimates, comparisons, and planning numbers before you make the final call.

Calculation jobs

  • Getting a realistic range before a purchase, plan, workout, or schedule decision.
  • Comparing scenarios by changing one input at a time.
  • Turning rough assumptions into a number you can discuss.

Calculation checks

  • Double-check units, dates, rates, and rounding assumptions.
  • Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
  • Save the inputs that produced an important result so you can reproduce it later.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Roman Numeral Converter Arabic ⇄ Roman, both directions, live — strict validation, step-by-step breakdown, vinculum up to 3,999,999 — 100% browser-only Open
  2. 2 Text to Binary Converter Text to binary (and back) — UTF-8 aware, 8/16/32 bit grouping, emoji safe. Open
  3. 3 Unit Converter Convert between length, weight, temperature, area, volume, speed, time — instant, browser-only Open

Real-world use cases

  • Verifying a 64-bit register dump from a debugger

    You paste 0xDEADBEEFCAFEBABE from a GDB session and need its unsigned decimal to compare against a spec value. parseInt would round it wrong above 2^53, so you drop it into the hex field here and read 16045690984833335486 exact, plus the full 64-bit binary to check which flag bits are set.

  • Setting a subnet mask while reading an RFC

    The doc lists a mask as /26 but your router config wants it in hex. You type 255.255.255.192's last octet, 192, see 11000000 in 8-bit binary, and confirm the top two bits are the host-network split. Switching the bit width to 32 lets you build the whole 0xFFFFFFC0 mask in one view.

  • Teaching two's complement to a CS class

    You want students to see that -1 in 8-bit is 11111111 and -128 is 10000000. You set the width to 8, type -1, then -128, and the binary field updates live so the class watches the sign bit flip. The same value shown in decimal, hex, and binary at once makes the encoding click without a whiteboard.

  • Packing color or flag constants for embedded code

    Your firmware needs 0x1F as the low five bits of a status byte. You enter 31, read 00011111 in 8-bit, then OR it with 0x80 using the bitwise panel to set the high enable bit, landing on 0x9F. You copy 0x9f straight into the C header without retyping or guessing the math.

Common pitfalls

  • Forgetting to set a bit width before typing a negative number — without a width, -5 just shows as "-101" binary, not the 11111011 two's-complement byte you probably want.

  • Pasting a hex value with a stray "0x" or "h" suffix into the decimal field instead of the hex field; type 0xFF into the hex box, or just FF, never into the decimal box where it reads as zero.

  • Assuming a value above 2^53 is safe to round-trip through a spreadsheet first; copy 0xFFFFFFFFFFFFFFFF straight into this tool, because Excel and parseInt both corrupt it to 18446744073709552000.

Privacy

Every conversion and bitwise operation runs entirely in your browser with no network request, so a register dump, key fragment, or any hex value you paste never leaves your machine. The value you type is reflected into the URL only when you use the share link, so a sensitive number stays out of your history unless you deliberately copy that link.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-07-02