Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal systems
🚀 Quick Start
- Input field: type your number into the matching base
- Enter number: type plain digits, or paste a prefixed value into the matching field (0b/0o/0x)
- 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
🎛️ 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
Why does pasting 0xFF into the binary/decimal field not convert?
0x is accepted only in the Hex field. Paste it there, or remove the prefix and type in the target base. Binary and octal accept 0b/0o respectively; copy returns plain values
Can I use spaces/underscores/grouping (e.g., 1111 0000, FF_FF)?
Separators are not supported. Use contiguous digits; remove spaces/underscores before pasting
Why are leading zeros removed (e.g., 0010 → 10)?
Outputs are normalized for readability. If you need fixed width, add zeros manually
Do you support negatives/fractions or two’s‑complement by width?
Negatives/fractions are not supported; results are treated as unsigned. Example: 8‑bit 0xFF is 255 unsigned, −1 if interpreted as signed 8‑bit
Does copy include prefixes?
Copy returns plain values. Prefixes are tolerated on input only in the matching field; add 0b/0o/0x in code if needed