Computer Number Systems — Binary, Octal, Decimal & Hex
How computers represent numbers: bases used in programming, memory, and networking. Conversion methods and free tools.
Overview
Computers manipulate binary data internally, but humans prefer decimal for arithmetic and hexadecimal for compact binary display. Octal persists in Unix permissions. Understanding when each base appears — and how to convert between them — is essential for programming, debugging, and systems administration.
Binary in Hardware
CPU registers, RAM cells, and bus lines carry voltage levels interpreted as 0 or 1. Instruction opcodes, character codes, and pixel RGB channels all serialize to bit patterns.
Decimal for Humans
User interfaces, financial reports, and most API inputs use decimal strings. Programs convert decimal input to binary internally via parsing algorithms (parseInt, Integer.parseInt, etc.).
Hexadecimal in Development
Debuggers show memory in hex. CSS colours: #FF5733. MAC addresses use hex pairs. IPv6 addresses use hex groups. One hex digit = four bits — the perfect shorthand.
Octal in Unix
chmod 644 = rw-r—r—. Each permission digit is octal. See Octal Conversion Guide.
ASCII and Character Codes
Text is stored as numeric codes. ASCII ‘A’ = 65. Unicode extends this globally. ASCII Converter | ASCII Table
BCD in Legacy Systems
Financial hardware sometimes uses Binary Coded Decimal for exact decimal digits. BCD Explained
Floating Point
Real numbers use IEEE 754 — sign, exponent, mantissa. Not all decimals are exact. IEEE 754 Guide
Study Path
- Read Number System Guide
- Practice with Number System Converter
- Deep dive Binary Number System
Frequently Asked Questions
Which base do programmers use most?
Write decimal, debug hex, think binary for bitwise ops.
Why not one universal base?
Different bases optimise for human readability vs hardware efficiency.
What base is JSON numbers?
Decimal text representation — parsed to binary float/int internally.
How are negative numbers stored?
Two’s complement in most languages (Java, C, Python ints).
Where are all Numverto number tools?
Browse all 13 tools — converters, arithmetic, ASCII, BCD, IEEE 754.
Share this article
Learn Faster with Numverto
Explore free number system converters, binary tools, EMI calculators, GST calculators, and educational guides.
About Numverto
Numverto Editorial Team
Numverto publishes educational content about number systems, computer science concepts, binary arithmetic, financial calculations, EMI formulas, GST calculations, and practical learning resources for students and professionals.
Article Metadata
Tags: number systems, computer science, programming
Last Updated: May 2026
Related Calculators
Related Articles
18 June 2026
Octal to Decimal Conversion — Step by Step with Examples
Learn how to convert octal (base 8) numbers to decimal (base 10) using the positional weight method. Includes worked examples, practice problems, and a free converter tool.
Read article →17 June 2026
What is 1's Complement and 2's Complement in Binary?
Learn 1's complement and 2's complement with simple explanations, step-by-step examples, and practice problems for BCA/BTech exams.
Read article →16 June 2026
ASCII Table — Complete Character Code Reference
Complete ASCII table with decimal, hexadecimal, and binary codes for all 128 characters. Includes printable characters, control codes, and practical usage examples.
Read article →