Tech Blog   »   Home   »   Coders Forum   »   Computer Directory   »   Math Calculators   »   RSS:Directory|Forum 


binary Conversion Tools: Binary | Decimal | Hexadecimal | Octal | String binary




Decimal Conversions (Integers)


The decimal-binary-hexadecimal-octal converter!

Converts decimal numbers to binary,
Converts decimal numbers to hexadecimal,
Converts decimal numbers to octal.


Enter an Integer Decimal Number in the box below to get the results.

Enter integer Numbers Only:


Results:




Binary Conversions

Convert a Binary number to a Decimal number

Enter Binary Numbers Only:
to Decimal:





Table 1 Conversion - Quick Reference


Decimal	  	Hexadecimal  	    Binary
0 <--------------> 0 <--------------> 0000
1 <--------------> 1 <--------------> 0001
2 <--------------> 2 <--------------> 0010
3 <--------------> 3 <--------------> 0011
4 <--------------> 4 <--------------> 0100
5 <--------------> 5 <--------------> 0101
6 <--------------> 6 <--------------> 0110
7 <--------------> 7 <--------------> 0111
8 <--------------> 8 <--------------> 1000
9 <--------------> 9 <--------------> 1001
10 <-------------> A <--------------> 1010
11 <-------------> B <--------------> 1011
12 <-------------> C <--------------> 1100
13 <-------------> D <--------------> 1101
14 <-------------> E <--------------> 1110
15 <-------------> F <--------------> 1111
				


Table 2 Conversion - Quick Reference


      Decimal	  	Hexadecimal  	         Binary
	16 <--------------> 10 <--------------> 0001 0000
	17 <--------------> 11 <--------------> 0001 0001
	18 <--------------> 12 <--------------> 0001 0010
	19 <--------------> 13 <--------------> 0001 0011
	20 <--------------> 14 <--------------> 0001 0100
	21 <--------------> 15 <--------------> 0001 0101
	22 <--------------> 16 <--------------> 0001 0110
	23 <--------------> 17 <--------------> 0001 0111
	24 <--------------> 18 <--------------> 0001 1000
	25 <--------------> 19 <--------------> 0001 1001
	26 <--------------> 1A <--------------> 0001 1010
	27 <--------------> 1B <--------------> 0001 1011
	28 <--------------> 1C <--------------> 0001 1100
	29 <--------------> 1D <--------------> 0001 1101
	30 <--------------> 1E <--------------> 0001 1110
	31 <--------------> 1F <--------------> 0001 1111
				

Convert a String to DECIMAL, BINARY, and HEXADECIMAL:


Example: "I love to program!"

Enter a String, word, or character:

Instant Results using (ASCII):

String to Decimal/ASCII-char:
String to Binary Number:       
String to Hexadecimal:          


Table 3 Conversion - Quick Reference


ASCII(char)	   Decimal	       Hexadecimal	       Binary
 space   <---------> 32 <--------------> 20 <--------------> 0010 0000
 !       <---------> 33 <--------------> 21 <--------------> 0010 0001
 "       <---------> 34 <--------------> 22 <--------------> 0010 0011
 #       <---------> 35 <--------------> 23 <--------------> 0010 0011
 $       <---------> 36 <--------------> 24 <--------------> 0010 0100
 %       <---------> 37 <--------------> 25 <--------------> 0010 0101
 &       <---------> 38 <--------------> 26 <--------------> 0010 0110
 '       <---------> 39 <--------------> 27 <--------------> 0010 0111
 (       <---------> 40 <--------------> 28 <--------------> 0010 1000
 )       <---------> 41 <--------------> 29 <--------------> 0010 1001
 *       <---------> 42 <--------------> 2A <--------------> 0010 1010
 +       <---------> 43 <--------------> 2B <--------------> 0010 1011
 ,       <---------> 44 <--------------> 2C <--------------> 0010 1100
 -       <---------> 45 <--------------> 2D <--------------> 0010 1101
 .       <---------> 46 <--------------> 2E <--------------> 0010 1110
 /       <---------> 47 <--------------> 2F <--------------> 0010 1111
				

Convert Hexadecimal To ASCII or ASCII to Hexadecimal:

Hexadecimal:
Enter HEX numbers above and convert -->

OR

String (characters):
Enter a String above and convert -->





Bits, Bytes, Binary, and Hexadecimal - Basic Storage Data

CodeObsessed.com
Binary Numbers are all zeros (0) and ones (1).
In binary, each digit position represents a power of 2.

Binary integers are stored in multiples of 8 bits (8, 16, 32, 48, 64)

8 bits == 1 byte
16 bits == 2 bytes
32 bits == 4 bytes
48 bits == 6 bytes
64 bits == 8 bytes

One binary digit --> 0 == 1 bit
Two binary digits --> 00 == 2 bits
Four binary digits --> 0000 == 4 bits
Eight binary digits --> 0000 0000 == 8 bits
Sixteen binary digits --> 0000 0000 0000 0000 == 16 bits

Hexadecimal Numbers (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F):
In hexadecimal, each digit position represents a power of 16.

Each hexadecimal digit represents 4 binary bits.
Remember: 1 byte == 8 bits, therefore...

One hexadecimal digit represents 4 binary bits, which is equal to half a byte.
Two hexadecimal digits together represent 1 byte, which is equal to 8 bits.
Four hexadecimal digits together represent 2 bytes, which is equal to 16 bits.
Eight hexadecimal digits together represent 4 bytes, which is equal to 32 bits.
Twelve hexadecimal digits together represent 6 bytes, which is equal to 48 bits.
Sixteen hexadecimal digits together represent 8 bytes, which is equal to 64 bits.

Possible numbers and digits for the four systems
		 System			 Base		Digits

		 Binary			 2		0,1
		 Octal			 8		0,1,2,3,4,5,6,7
		 Decimal		 10		0,1,2,3,4,5,6,7,8,9
		 Hexadecimal		 16		0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

Larger Measurements - Memory and Disk Space


One kilobyte is equal to 210, or 1024 bytes.
One megabyte (MByte) is equal to 220, or 1,048,576 bytes.
One gigabyte (GByte) is equal to 230, or 10243, or 1,073,741,824 bytes.
One terabyte (TByte) is equal to 240, or 10244, or 1,099,511,627,776 bytes.
One petabyte (PByte) is equal to 250, or 1,125,899,906,842,624 bytes.
One exabyte (EByte) is equal to 260, or 1,152,921,504,606,846,976 bytes.
One zettabyte (ZByte) is equal to 270 bytes.
One yottabyte (YByte) is equal to 280 bytes.


Validated with no errors:

Valid XHTML 1.0 Transitional     Valid CSS!


Site Map