Number System Converter & Calculator
Convert between binary, hexadecimal, decimal, and ASCII. Perform calculations in different number systems and execute bitwise operations. All processing happens locally in your browser - your data never leaves your device.
Binary, Hex, Decimal, ASCII, Octal
Calculate in Hex, Decimal, or Binary
AND, OR, XOR, NOT, Shifts
Number Converter
Quick Reference
Multi-Base Calculator
Bitwise Operations
Tips & Usage
About Number System Converter & Calculator
Convert between binary, hexadecimal, decimal, octal, and ASCII number systems with our free online converter. Perform calculations in different number bases (hex, decimal, binary). Execute bitwise operations including AND, OR, XOR, NOT, and bit shifts. View signed and unsigned interpretations for 8-bit and 16-bit integers. Perfect for programmers, students, and anyone working with different number systems or low-level operations.
Number System Conversions
Binary (Base-2)
Uses only 0 and 1. Fundamental to computer systems and digital electronics. Format: 0b prefix (e.g., 0b1010).
Hexadecimal (Base-16)
Uses 0-9 and A-F. Compact representation of binary. Format: 0x prefix (e.g., 0xAF). Commonly used in programming.
Decimal (Base-10)
Standard human-readable number system using digits 0-9. The most common representation in everyday use.
Octal (Base-8)
Uses digits 0-7. Format: 0 prefix (e.g., 0755). Used in Unix file permissions and some legacy systems.
ASCII
Character encoding standard. Converts between numbers (0-127) and text characters. Essential for text processing.
Bitwise Operations
AND (&)
Returns 1 if both bits are 1. Used for masking and checking specific bits.
OR (|)
Returns 1 if at least one bit is 1. Used for setting specific bits.
XOR (^)
Returns 1 if bits are different. Used for toggling bits and simple encryption.
NOT (~)
Inverts all bits (0→1, 1→0). Used for creating bit masks.
Left Shift (<<)
Shifts bits left, filling with 0s. Equivalent to multiplying by 2.
Right Shift (>>)
Shifts bits right. Equivalent to integer division by 2.
Common Use Cases
- Embedded Programming - Work with hardware registers using hex and binary
- Network Programming - Convert IP addresses and subnet masks
- Color Codes - Convert between decimal RGB and hex color values
- File Permissions - Calculate Unix/Linux file permissions in octal
- Bit Manipulation - Optimize algorithms using bitwise operations
- Data Compression - Work with packed data structures
- Cryptography - Perform XOR operations for simple ciphers
- Learning - Understand how computers represent and process numbers
Frequently Asked Questions
What number systems can I convert between?
Our converter supports Binary, Hexadecimal, Decimal, Octal, and ASCII. It instantly converts your input to all formats and shows both signed and unsigned interpretations for 8-bit and 16-bit integers.
Can I perform calculations in different number bases?
Yes! The calculator supports three modes: Hexadecimal, Decimal, and Binary. You can perform basic arithmetic operations (+, -, *, /) in any of these bases. In hex mode, you can also use A-F digits.
What bitwise operations are supported?
We support AND, OR, XOR, NOT, left shift, and right shift operations on 16-bit values. Results are shown in both hexadecimal and binary formats.
Is my data safe when using this tool?
Yes! All calculations and conversions happen entirely in your browser. No data is sent to any server, ensuring complete privacy and security.
What's the difference between signed and unsigned integers?
Unsigned integers represent only positive values (0-255 for 8-bit, 0-65535 for 16-bit). Signed integers use one bit for the sign, allowing negative values (-128 to 127 for 8-bit, -32768 to 32767 for 16-bit).
Why would I use hexadecimal instead of decimal?
Hexadecimal is more compact and aligns perfectly with binary (4 bits = 1 hex digit). It's commonly used in programming for memory addresses, color codes, and representing binary data in a human-readable format.