Base Conversion Table
Generate custom, interactive number base reference charts instantly. Choose custom start values, end values, and increment steps to build a table of decimal numbers mapped to their binary, octal, hexadecimal, and ASCII character equivalents. Apply filters, highlight mathematical properties, download data as CSV/JSON, or copy as Markdown tables. Fits standard CS coursework and programming needs.
Analyze number mappings dynamically. Configure your starting value, ending range, padding parameters, and active column properties below.
| Decimal (10) | Binary (2) | Octal (8) | Hexadecimal (16) | ASCII Char | Roman Num |
|---|---|---|---|---|---|
| 0 | 00000000 | 0 | 0 | Control char | - |
| 1 | 00000001 | 1 | 1 | Control char | I |
| 2 | 00000010 | 2 | 2 | Control char | II |
| 3 | 00000011 | 3 | 3 | Control char | III |
| 4 | 00000100 | 4 | 4 | Control char | IV |
| 5 | 00000101 | 5 | 5 | Control char | V |
| 6 | 00000110 | 6 | 6 | Control char | VI |
| 7 | 00000111 | 7 | 7 | Control char | VII |
| 8 | 00001000 | 10 | 8 | Control char | VIII |
| 9 | 00001001 | 11 | 9 | Control char | IX |
| 10 | 00001010 | 12 | A | Control char | X |
| 11 | 00001011 | 13 | B | Control char | XI |
| 12 | 00001100 | 14 | C | Control char | XII |
| 13 | 00001101 | 15 | D | Control char | XIII |
| 14 | 00001110 | 16 | E | Control char | XIV |
| 15 | 00001111 | 17 | F | Control char | XV |
| 16 | 00010000 | 20 | 10 | Control char | XVI |
| 17 | 00010001 | 21 | 11 | Control char | XVII |
| 18 | 00010010 | 22 | 12 | Control char | XVIII |
| 19 | 00010011 | 23 | 13 | Control char | XIX |
| 20 | 00010100 | 24 | 14 | Control char | XX |
| 21 | 00010101 | 25 | 15 | Control char | XXI |
| 22 | 00010110 | 26 | 16 | Control char | XXII |
| 23 | 00010111 | 27 | 17 | Control char | XXIII |
| 24 | 00011000 | 30 | 18 | Control char | XXIV |
| 25 | 00011001 | 31 | 19 | Control char | XXV |
| 26 | 00011010 | 32 | 1A | Control char | XXVI |
| 27 | 00011011 | 33 | 1B | Control char | XXVII |
| 28 | 00011100 | 34 | 1C | Control char | XXVIII |
| 29 | 00011101 | 35 | 1D | Control char | XXIX |
| 30 | 00011110 | 36 | 1E | Control char | XXX |
| 31 | 00011111 | 37 | 1F | Control char | XXXI |
| 32 | 00100000 | 40 | 20 | XXXII | |
| 33 | 00100001 | 41 | 21 | ! | XXXIII |
| 34 | 00100010 | 42 | 22 | " | XXXIV |
| 35 | 00100011 | 43 | 23 | # | XXXV |
| 36 | 00100100 | 44 | 24 | $ | XXXVI |
| 37 | 00100101 | 45 | 25 | % | XXXVII |
| 38 | 00100110 | 46 | 26 | & | XXXVIII |
| 39 | 00100111 | 47 | 27 | ' | XXXIX |
| 40 | 00101000 | 50 | 28 | ( | XL |
| 41 | 00101001 | 51 | 29 | ) | XLI |
| 42 | 00101010 | 52 | 2A | * | XLII |
| 43 | 00101011 | 53 | 2B | + | XLIII |
| 44 | 00101100 | 54 | 2C | , | XLIV |
| 45 | 00101101 | 55 | 2D | - | XLV |
| 46 | 00101110 | 56 | 2E | . | XLVI |
| 47 | 00101111 | 57 | 2F | / | XLVII |
| 48 | 00110000 | 60 | 30 | 0 | XLVIII |
| 49 | 00110001 | 61 | 31 | 1 | XLIX |
| 50 | 00110010 | 62 | 32 | 2 | L |
| 51 | 00110011 | 63 | 33 | 3 | LI |
| 52 | 00110100 | 64 | 34 | 4 | LII |
| 53 | 00110101 | 65 | 35 | 5 | LIII |
| 54 | 00110110 | 66 | 36 | 6 | LIV |
| 55 | 00110111 | 67 | 37 | 7 | LV |
| 56 | 00111000 | 70 | 38 | 8 | LVI |
| 57 | 00111001 | 71 | 39 | 9 | LVII |
| 58 | 00111010 | 72 | 3A | : | LVIII |
| 59 | 00111011 | 73 | 3B | ; | LIX |
| 60 | 00111100 | 74 | 3C | < | LX |
| 61 | 00111101 | 75 | 3D | = | LXI |
| 62 | 00111110 | 76 | 3E | > | LXII |
| 63 | 00111111 | 77 | 3F | ? | LXIII |
| 64 | 01000000 | 100 | 40 | @ | LXIV |
Key Features of the Base Conversion Table
Custom Ranges & Step Increments
Generate base mapping lists from any start integer to an end value with custom steps (e.g. counting by 5s, 10s, etc.). Supports table outputs up to 10,000 rows.
Visual Property Highlighting
Instantly identify mathematical properties in the table grid. Highlight prime numbers, even numbers, odd numbers, or perfect squares with custom color markers.
Markdown & Data Exporting
Download your customized base reference sheet as a CSV or JSON file. Copy rows directly as a Markdown-formatted table, ready for markdown documentation.
Multi-Column Search Filters
Find values instantly. The search filter scans across decimal, binary, octal, and hexadecimal values to match sub-strings in real-time.
Common Use Cases for Base Conversion Table
Computer Science Education
A perfect study aid for students learning binary representation, hex configurations, two's complement, and number base conversions.
Firmware & Embedded Systems
Cross-reference register settings, pin configurations, and byte flags between binary bitfields and hex values while debugging microcontrollers.
Network Subnetting & IPs
Map IP addresses and network masks to binary octets, facilitating understanding of CIDR blocks, subnetting, and bitwise logic.
Digital Electronics Engineering
Validate logic gate transitions, encoder/decoder values, and truth tables by checking consecutive binary counters side-by-side.
Cheat Sheet Printing
Generate a tailored range (e.g. 0 to 255) and print a clean, paper-friendly sheet to use as an offline programmer's reference card.
Technical Documentation
Quickly copy a formatted Markdown grid of specific ranges and paste it directly into design documentation, code files, or wiki pages.
Understanding Number Bases & Conversions
What is a Number Base (Radix)?
A number base (or radix) is the number of unique digits, including zero, that a positional numeral system uses to represent numbers. In standard decimal (base 10), we count using 10 symbols (0–9). In computers, hardware is built on binary transistors which have only two states, representing base 2 (0 and 1). To write binary compactly, computer scientists use octal (base 8) and hexadecimal (base 16).
How Base Conversion Works mathematically
Any number in base b can be represented using positional weights. The position of each digit corresponds to a power of the base b.
Example: Converting Hexadecimal A416 to Decimal:
- Assign values: In hex, A = 10, and the positions are weighted by powers of 16.
- Equation: A416 = (10 × 161) + (4 × 160)
- Substitution: (10 × 16) + (4 × 1) = 160 + 4 = 16410
Example: Converting Decimal 13 to Binary (Base 2):
We divide by 2 repeatedly and record the remainders (read from bottom to top):
- 13 ÷ 2 = 6, remainder 1 (Least Significant Bit)
- 6 ÷ 2 = 3, remainder 0
- 3 ÷ 2 = 1, remainder 1
- 1 ÷ 2 = 0, remainder 1 (Most Significant Bit)
- Result: 1310 = 11012
Base Conversion Quick Cheat Sheet
When working with microprocessors or network configurations, the following mappings are standard:
| Decimal (Base 10) | Binary (Base 2) | Octal (Base 8) | Hexadecimal (Base 16) |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 5 | 0101 | 5 | 5 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 0001 0000 | 20 | 10 |
| 31 | 0001 1111 | 37 | 1F |
| 255 | 1111 1111 | 377 | FF |
Related Tools
Age Calculator
Calculate your exact age in years, months, weeks, days, hours, and minutes from your date of birth. See alternative age measurements (total days, hours, seconds), zodiac signs, next birthday countdown, and key life milestones. Free online age calculator — no signup required.
Date Difference Calculator
Calculate date differences online for free with our date difference calculator. Instantly find days, weeks, months, and years between any two dates. Accurate, fast, and no signup required.
Date Add / Subtract Calculator
Add or subtract days, weeks, months, years, hours, minutes, and seconds from any date. Support for weekdays/business days calculations. Free online date calculator — no signup required.
Days Until / Days Since Calculator
Calculate exact days, weeks, months, or years until a future event or since a past milestone. Save custom events to your dashboard. Free online date counter — no signup required.
Frequently Asked Questions About Base Conversion
These are positional numeral systems with different bases. Binary is base 2 (digits 0–1), octal is base 8 (digits 0–7), decimal is base 10 (digits 0–9), and hexadecimal is base 16 (digits 0–9 and letters A–F representing 10–15). Each system is useful in computing because of how computers structure memory using bits (binary), bytes (8-bit groups), and hex (representing 4 bits per character).
Binary numbers are very long and hard for humans to read. Since 8 (octal base) and 16 (hex base) are powers of 2 (2³ and 2⁴), they are directly compatible with binary. One hex digit represents exactly 4 binary bits (a nibble), and two hex digits represent an 8-bit byte. This makes hex and octal a compact, easily readable shorthand for binary memory states.
Bit padding prepends leading zeros to binary numbers to ensure they fit standard hardware register sizes. For example, without padding, decimal 5 is "101". With 8-bit padding, it is formatted as "00000101", making it clear how the number is stored in a standard byte of memory.
To prevent the browser from freezing when generating large lists, we limit the maximum rows in a single table to 10,000. You can set the start and end values to anything up to 1,000,000, but the difference between them (divided by the step size) should not exceed 10,000. For single-value lookups, there is no limit in the mini-converter.
ASCII values from 0 to 31, and value 127, represent control characters (like line break, tab, or backspace) that do not have a visual representation. The table will mark these as "Control character" or "Non-printable". Printable characters begin at decimal 32 (space) and end at decimal 126 (tilde ~).
Inside the table configuration options, there is a "Hex Letter Case" selector. You can switch between "Uppercase" (e.g. 1F, A4) and "Lowercase" (e.g. 1f, a4) to match your code styling guidelines.