Skip to content
World Cup Kickoff Time Converter is liveSee kickoff times in your time zone and add calendar reminders.

Base Converter

Base converter for non-negative binary, octal, decimal, and hexadecimal integers with BigInt precision, matching-field 0b/0o/0x input tolerance, linked updates, and plain-value copy.

Binary

Octal

Decimal

Hexadecimal

Base Converter

Quick Start

1
Type a number in the matching Binary, Octal, Decimal, or Hexadecimal field.
2
Use 0b, 0o, or 0x only in the matching field.
3
Review linked fields, then copy plain values without prefixes.

Common Scenarios

Programming & debugging

quickly convert integer constants, bit masks, and flag values between common bases

Permission bits

relate Unix permissions (octal 755) to binary/decimal

Networking & protocols

convert copied numeric fields such as 0xA5, without parsing packets, byte order, or frame structure

Bit pattern learning

compare the same unsigned integer across binary, octal, decimal, and hex before doing bitwise work elsewhere

Registers/bitfields

inspect the binary and hex representation of unsigned values from datasheets, without a bitfield editor or width setting

Conversion Parameters & Range

Supported bases: binary, octal, decimal, and hexadecimal for non-negative integers
Digits: binary 0/1; octal 0–7; decimal 0–9; hex 0–9/A–F (case-insensitive)
Prefix tolerance: only the matching field accepts 0b/0o/0x; decimal does not auto-detect prefixes
Separators: spaces, underscores, commas, grouping marks, and multi-line batches are not supported
Leading zeros: outputs and copied values remove non-essential leading zeros

Base Conversion Boundaries

Conversion uses BigInt for exact integer base changes, not JavaScript floating-point numbers.
Prefix tolerance is field-specific: 0b works in Binary, 0o in Octal, and 0x in Hex. Decimal accepts digits only.
Outputs and copied values are plain digits. They omit 0b/0o/0x and remove non-essential leading zeros.
The page does not decode signed values, choose bit width, pad fixed-width output, or interpret two's-complement for you.
This is not a bitwise calculator: shifts, AND, OR, XOR, NOT, bit toggles, and expression parsing are outside the tool.
This is not a hex dump, byte-order, ASCII text, UTF byte, Base64, URL, or HTML entity parser.

Usage Advice

Validate input: ensure the chosen base matches allowed digits; avoid illegal characters
Code literals: copy output is always plain value; add 0b/0o/0x manually when you paste results back into code.
Hex letter case: value is case-insensitive; for code, agree on a unified style (e.g., uppercase).
Readability with large numbers: remove spaces, underscores, commas, or grouping marks before pasting because input accepts contiguous digits only
Signedness: results are unsigned non-negative integers. Two's-complement meaning depends on an external width that this page does not choose.

URL Quick Fill

Prefill the base converter from the URL hash. number and from-base are required; to-base is optional because all bases stay visible.
number: Number (required)
from-base: Source base (required)
to-base: Target base (optional)
Example: #number=FF&from-base=16&to-base=2
Hash parameters stay in the browser for tool prefill; CrateX.app does not record them.
Do not put private IDs, tokens, or other sensitive numbers in URLs.

Limitations & Compatibility

No automatic base detection: only the matching field accepts 0b/0o/0x; conversion and copy output plain values
Negative numbers, fractions, scientific notation, separators, and grouped digits are not supported

Privacy & Security

Processing runs in your browser. The binary, octal, decimal, and hex values, source number/base, and last edited base may stay in browser storage or session state. If you save a workspace or enable WebDAV sync, those values may be saved according to your sync settings. URL hash quick-fill parameters remain in the browser URL and may be shared with that URL. Clear the fields and site data on shared devices when needed.

FAQ

5

Continue with these related tools for the next step.

All tool processing happens locally in your browser.