Hex to Decimal Converter: Hex, Binary & Octal (0xFF = 255)

Hex to decimal conversion is positional arithmetic in base 16: 0xFF to decimal is 255, or 11111111 in binary. Use the free converter below, or follow the method to convert any value by hand.

Quick answer: 0xFF to decimal is 255, and 0xFF in binary is 11111111. The 0x prefix only labels the value as hexadecimal; the conversion itself is exact. Below you will find the step-by-step formula, a 0–256 reference table, and a free converter that handles hex, binary, octal, and decimal in any direction.

Understanding Number Systems

Computers and humans think about numbers differently. We use the decimal system (base 10) with digits 0-9, but computers work in binary (base 2) with just 0 and 1. Hexadecimal (base 16) and octal (base 8) bridge the gap: they’re compact ways to represent binary data in a human-readable format.

SystemBaseDigitsCommon Use
Binary20, 1Computer logic, networking
Octal80-7Unix file permissions
Decimal100-9Everyday counting
Hexadecimal160-9, A-FColors, memory addresses

Hex to Decimal Conversion: 0xFF Step by Step

Each hex digit represents a power of 16. To convert 0xFF to decimal:

F = 15, F = 15
0xFF = (15 × 16¹) + (15 × 16⁰)
     = (15 × 16) + (15 × 1)
     = 240 + 15
     = 255

So 0xFF in decimal is 255, the largest value a single unsigned byte can hold. The same logic gives 163 for 0xA3, 128 for 0x80, and 64 for 0x40. In Notes Calculator you type the question the same way: 0xFF in decimal or 0xFF to decimal.

Hex Color Codes

Web developers use hex codes for colors. Each pair of hex digits represents red, green, and blue (0-255):

ColorHex CodeRGB Decimal
White#FFFFFF255, 255, 255
Black#0000000, 0, 0
Red#FF0000255, 0, 0
Green#00FF000, 255, 0
Blue#0000FF0, 0, 255
Yellow#FFFF00255, 255, 0

Hex to Binary Conversion

Each hex digit maps to exactly 4 binary bits (a nibble), so you can convert one digit at a time. F is 1111, so 0xFF becomes 1111 1111: eight bits, all set to 1.

PositionBitValue
2⁷1128
2⁶164
2⁵132
2⁴116
2³18
2²14
2¹12
2⁰11

Add the positional values: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255, the same answer seen from the binary side. In Notes Calculator, type 0xFF in binary and the result pane prints 11111111 directly. See the docs on bases and scientific notation for every base keyword the parser accepts.

Binary to Decimal Conversion

Each binary digit (bit) represents a power of 2. To convert 11010 to decimal:

1×2⁴ + 1×2³ + 0×2² + 1×2¹ + 0×2⁰
= 16 + 8 + 0 + 2 + 0
= 26

How Computers Use Binary

All data in a computer is ultimately binary: a sequence of 0s and 1s. Each 0 or 1 is a bit, and 8 bits make a byte. Understanding binary helps with:

  • Networking: IP addresses and subnet masks
  • File sizes: Why 1 KiB is 1024 bytes (2¹⁰)
  • Permissions: Unix chmod values
  • Programming: Bitwise operations and flags

For file size conversions, see our byte converter.

Octal to Decimal Conversion

Octal uses powers of 8. To convert 377 (octal) to decimal:

3×8² + 7×8¹ + 7×8⁰
= 192 + 56 + 7
= 255

Unix File Permissions

Octal is used for Unix/Linux file permissions:

OctalBinaryPermission
7111Read + Write + Execute
6110Read + Write
5101Read + Execute
4100Read only
0000No permission

chmod 755 means: owner gets rwx (7), group gets r-x (5), others get r-x (5).

Quick Reference Table

DecimalHexBinaryOctal
0000
1111
88100010
10A101012
15F111117
16101000020
322010000040
64401000000100
1288010000000200
255FF11111111377
256100100000000400

Free Hex Decimal Binary Converter

Convert between decimal, hexadecimal, binary, and octal number systems.

=

©2026 Notes Calculator. All rights reserved.


Example

Convert 0xA3 (hex) to decimal:

A = 10, 3 = 3
0xA3 = (10 × 16) + (3 × 1)
     = 160 + 3
     = 163

Frequently Asked Questions

How do I convert hex to decimal?

Multiply each hex digit by its positional power of 16, then add the results. Hex digits A-F represent values 10-15. For example, hex 1A = (1 x 16) + (10 x 1) = 26 in decimal. For larger numbers, continue with higher powers: 16², 16³, and so on.

Why do programmers use hexadecimal?

Hexadecimal is a compact way to represent binary data. Each hex digit maps to exactly 4 binary digits (bits), making conversion simple. For example, 0xFF = 11111111 in binary. This makes hex ideal for memory addresses, color codes, and byte values, which would be very long in binary.

What is the difference between binary and decimal?

Decimal (base 10) uses digits 0-9 and is what humans use daily. Binary (base 2) uses only 0 and 1 and is how computers process data. Binary is less readable but directly represents electrical states (on/off) in computer circuits. Every decimal number has a binary equivalent.

Convert Number Bases in Notes Calculator

Notes Calculator converts between decimal, hexadecimal, binary, and octal using natural syntax:

Number Base Conversions
NoteResult
255 in hex FF
255 in binary 11111111
255 in octal 377
// Hex to decimal
0xFF in decimal 255
// Binary to decimal
0b11010 in decimal 26
// Arithmetic across bases
(0xFF + 1) in hex 100
(0b1010 + 0b0101) in binary 1111
// Web color values
Red: 0xFF 255
Green: 0x80 128
Blue: 0x00 0

Use hex, binary, octal, and decimal keywords (or their short forms ₁₆, ₂, ₈, ₁₀) to convert freely between systems. You can even do arithmetic across bases: Notes Calculator handles the conversion automatically.

For API cost estimates, storage across users, and SLA downtime budgets alongside number-base conversion, see our calculator for developers.

For Mac users looking for a calculator with built-in base conversion, check our best calculator apps for Mac comparison. Large hexadecimal values convert into very long decimals: the big numbers guide explains how to read and write those with million-to-nonillion suffixes.

Skip the manual math.

Notes Calculator runs every formula in this article, and a lot more, in plain text. Free on every platform.

Free forever plan · No credit card · Cross-platform