Skip to content

Base Converter

Base Converter

Base converter for binary, octal, decimal, and hexadecimal numbers with automatic 0b/0o/0x prefix detection, instant linked updates, and bitwise debugging workflows.

Binary

Octal

Decimal

Hexadecimal

Base Converter

Quick Start

1
Input field: type your number into the matching base
2
Enter number: type plain digits, or paste a prefixed value into the matching field (0b/0o/0x)
3
Instant results: the other fields update automatically and can be copied

Common Scenarios

Programming & debugging

quickly convert constants, bit masks, and flags

Permission bits

relate Unix permissions (octal 755) to binary/decimal

Networking & protocols

inspect/verify hexadecimal fields in frames

Bitwise learning

observe how shifts and AND/OR/NOT affect representations

Registers/bitfields

decompose and compose flag bits (e.g., 0xA5 → switches), handy for embedded and protocol debugging

Extended workflow

hex converter, octal converter, and decimal converter can be handled in the same review flow, so you can verify results before copying or exporting.

Conversion Parameters & Range

Supported bases: binary, octal, decimal, hexadecimal
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; output is plain value
Separators: spaces/underscores/grouping are not supported
Leading zeros: outputs remove non-essential leading zeros

Usage Advice

Validate input: ensure the chosen base matches allowed digits; avoid illegal characters
Team convention: decide whether to keep prefixes in results to avoid ambiguity
Hex letter case: value is case-insensitive; for code, agree on a unified style (e.g., uppercase).
Readability with large numbers: for manual checks, segment before pasting (input accepts contiguous digits only)
Signedness: results are treated as unsigned; consider two’s‑complement/sign bits as needed

Limitations & Compatibility

No separators; only the matching field accepts 0b/0o/0x. Conversion and copy output plain values
Negative numbers and fractions are not supported
Very long inputs may reduce performance; consider splitting

Privacy & Security

All processing happens in your browser; data never leaves your device

FAQ

5

Continue with these related tools for the next step.