Binary Converter
Convert between binary, octal, decimal, and hexadecimal. Includes text-to-binary encoding and bit grouping for readability.
Quick examples:
BINBinarybase 2
—
OCTOctalbase 8
—
DECDecimalbase 10
—
HEXHexadecimalbase 16
—
Text to Binary / Hex
How to Use Binary Converter
- 1Enter a number in any base (binary, octal, decimal, hex).
- 2See the value converted to all other bases instantly.
- 3Toggle binary grouping (4-bit or 8-bit).
- 4Use text-to-binary to encode text as binary or hex.
Zenovay
Privacy-first analytics for your website
Understand your visitors without invasive tracking. GDPR compliant, lightweight, and powerful.
Related Tools
Color ConverterConvert colors between HEX, RGB, HSL, and CMYK formats. Live preview with color picker.
Unit ConverterConvert between units of length, weight, temperature, area, volume, speed, and more.
Number Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal bases.
Unix Timestamp ConverterConvert between Unix timestamps and human-readable dates. Show ISO 8601, UTC, local time, and relative time.
Frequently Asked Questions
What is binary?▾
Binary is a base-2 number system that uses only two digits: 0 and 1. Each digit is called a bit. Groups of 8 bits form a byte. Computers use binary because electronic circuits naturally represent two states — off (0) and on (1) — making it the fundamental language of all digital hardware.
What are the four common number systems?▾
Binary (base 2) uses digits 0–1. Octal (base 8) uses digits 0–7. Decimal (base 10) uses digits 0–9 and is the everyday human counting system. Hexadecimal (base 16) uses digits 0–9 plus letters A–F to represent values 10–15. Each system is a positional notation where each position is a power of its base.
Why do computers use binary?▾
Computers use binary because transistors and logic gates have two stable electrical states: high voltage (1) and low voltage (0). Binary arithmetic maps perfectly to these states, making it trivially simple to build reliable, fast hardware. All data — text, images, audio, video — is ultimately stored and processed as sequences of 0s and 1s.
What is two's complement?▾
Two's complement is the standard method computers use to represent signed (positive and negative) integers in binary. To negate a number: invert all bits (one's complement) then add 1. For example, +5 in 8-bit binary is 00000101; –5 is 11111011. This scheme makes subtraction identical to addition in hardware, eliminating the need for a separate subtraction circuit.
Where is binary used in programming?▾
Binary and its shorthand (hexadecimal) appear throughout programming: file permissions (chmod uses octal, e.g. 755), color codes (#FF5733 in hex), memory addresses, bitmask flags, network masks, character encodings (ASCII/UTF-8), and bitwise operations (&, |, ^, <<, >>). Understanding binary helps you read stack traces, debug low-level code, and work with binary protocols.