T
THINKFORU
Submit Feedback

Octal to Decimal Converter: Base-8 to Base-10

Octal to Decimal Converter: Base-8 to Base-10

Octal to Decimal Converter

Save on Google
Tip: enter one number to see the digit-by-digit steps, binary and hex. Several numbers (one per line), octal fractions like 56.3 and prefixes like 0o17 also work.
Output appears here
 
Related Developer Tools
Tool Name Explanation
Decimal to Octal Converter Converts decimal numbers into base-8 octal representation with step-by-step division.
Hex to Octal Converter Converts hexadecimal numbers into octal by mapping hex digits through binary equivalents.
Binary to Text Converter Decodes binary (0s and 1s) back into clean, readable text.
Text to Binary Converter Converts text strings into 8-bit or 7-bit binary representation.
Text to Hex Converter Converts plain text characters into hexadecimal ASCII or UTF-8 values.
Hex to Text Converter Decodes hexadecimal values back into plain, human-readable text.
Text to Octal Converter Converts text into octal bytes with separator, digits, and prefix options.
Octal to Text Converter Decodes octal byte sequences back into readable plain text.
Decimal to Binary Converter Converts decimal numbers into binary with step-by-step logic and 2's complement.
Binary to Decimal Converter Converts binary numbers into decimal integers with full positional notation.
Hex to Binary Converter Converts base-16 hexadecimal numbers directly into base-2 binary strings.
Binary to Hex Converter Groups binary digits into 4-bit nibbles and converts them to hex digits.
Octal to Binary Converter Converts base-8 octal values directly into equivalent binary groups.
Binary to Octal Converter Groups binary bits in sets of three to convert directly into octal numbers.
Hex to Decimal Converter Converts base-16 hexadecimal values into base-10 decimal numbers using positional values.
Decimal to Hex Converter Converts base-10 decimal numbers into base-16 hexadecimal with steps and prefix options.

Example 1: Convert 755 to Decimal

PositionOctal digitPower of 8Digit x Power of 8
278^2448
158^140
058^05
Add the last column: 448 + 40 + 5 = 493.

Example 2: Convert 153 to Decimal

PositionOctal digitPower of 8Digit x Power of 8
218^264
158^140
038^03
Add the last column: 64 + 40 + 3 = 107.

Octal Digit to Decimal Table (0-7)

Octal digitDecimalBinary (3-bit)
00000
11001
22010
33011
44100
55101
66110
77111

Octal to Decimal Table (000-377)

Octal (3-digit)DecimalBinary (8-bit)Hex
00000000000000
00110000000101
00220000001002
00330000001103
00440000010004
00550000010105
00660000011006
00770000011107
01080000100008
01190000100109
01210000010100A
01311000010110B
01412000011000C
01513000011010D
01614000011100E
01715000011110F
020160001000010
021170001000111
022180001001012
023190001001113
024200001010014
025210001010115
026220001011016
027230001011117
030240001100018
031250001100119
03226000110101A
03327000110111B
03428000111001C
03529000111011D
03630000111101E
03731000111111F
040320010000020
041330010000121
042340010001022
043350010001123
044360010010024
045370010010125
046380010011026
047390010011127
050400010100028
051410010100129
05242001010102A
05343001010112B
05444001011002C
05545001011012D
05646001011102E
05747001011112F
060480011000030
061490011000131
062500011001032
063510011001133
064520011010034
065530011010135
066540011011036
067550011011137
070560011100038
071570011100139
07258001110103A
07359001110113B
07460001111003C
07561001111013D
07662001111103E
07763001111113F
100640100000040
101650100000141
102660100001042
103670100001143
104680100010044
105690100010145
106700100011046
107710100011147
110720100100048
111730100100149
11274010010104A
11375010010114B
11476010011004C
11577010011014D
11678010011104E
11779010011114F
120800101000050
121810101000151
122820101001052
123830101001153
124840101010054
125850101010155
126860101011056
127870101011157
130880101100058
131890101100159
13290010110105A
13391010110115B
13492010111005C
13593010111015D
13694010111105E
13795010111115F
140960110000060
141970110000161
142980110001062
143990110001163
1441000110010064
1451010110010165
1461020110011066
1471030110011167
1501040110100068
1511050110100169
152106011010106A
153107011010116B
154108011011006C
155109011011016D
156110011011106E
157111011011116F
1601120111000070
1611130111000171
1621140111001072
1631150111001173
1641160111010074
1651170111010175
1661180111011076
1671190111011177
1701200111100078
1711210111100179
172122011110107A
173123011110117B
174124011111007C
175125011111017D
176126011111107E
177127011111117F
2001281000000080
2011291000000181
2021301000001082
2031311000001183
2041321000010084
2051331000010185
2061341000011086
2071351000011187
2101361000100088
2111371000100189
212138100010108A
213139100010118B
214140100011008C
215141100011018D
216142100011108E
217143100011118F
2201441001000090
2211451001000191
2221461001001092
2231471001001193
2241481001010094
2251491001010195
2261501001011096
2271511001011197
2301521001100098
2311531001100199
232154100110109A
233155100110119B
234156100111009C
235157100111019D
236158100111109E
237159100111119F
24016010100000A0
24116110100001A1
24216210100010A2
24316310100011A3
24416410100100A4
24516510100101A5
24616610100110A6
24716710100111A7
25016810101000A8
25116910101001A9
25217010101010AA
25317110101011AB
25417210101100AC
25517310101101AD
25617410101110AE
25717510101111AF
26017610110000B0
26117710110001B1
26217810110010B2
26317910110011B3
26418010110100B4
26518110110101B5
26618210110110B6
26718310110111B7
27018410111000B8
27118510111001B9
27218610111010BA
27318710111011BB
27418810111100BC
27518910111101BD
27619010111110BE
27719110111111BF
30019211000000C0
30119311000001C1
30219411000010C2
30319511000011C3
30419611000100C4
30519711000101C5
30619811000110C6
30719911000111C7
31020011001000C8
31120111001001C9
31220211001010CA
31320311001011CB
31420411001100CC
31520511001101CD
31620611001110CE
31720711001111CF
32020811010000D0
32120911010001D1
32221011010010D2
32321111010011D3
32421211010100D4
32521311010101D5
32621411010110D6
32721511010111D7
33021611011000D8
33121711011001D9
33221811011010DA
33321911011011DB
33422011011100DC
33522111011101DD
33622211011110DE
33722311011111DF
34022411100000E0
34122511100001E1
34222611100010E2
34322711100011E3
34422811100100E4
34522911100101E5
34623011100110E6
34723111100111E7
35023211101000E8
35123311101001E9
35223411101010EA
35323511101011EB
35423611101100EC
35523711101101ED
35623811101110EE
35723911101111EF
36024011110000F0
36124111110001F1
36224211110010F2
36324311110011F3
36424411110100F4
36524511110101F5
36624611110110F6
36724711110111F7
37024811111000F8
37124911111001F9
37225011111010FA
37325111111011FB
37425211111100FC
37525311111101FD
37625411111110FE
37725511111111FF

Octal Place Values (Powers of 8)

PositionPower of 8Place valueOctal value
08^011
18^1810
28^264100
38^35121000
48^4409610000
58^532768100000
68^62621441000000
78^7209715210000000
88^816777216100000000
98^91342177281000000000
108^10107374182410000000000

Common Octal Numbers in Decimal

NumberOctalDecimal
Subnet mask octet (/25)200128
Subnet mask octet (/26)300192
Subnet mask octet (/27)340224
Subnet mask octet (/28)360240
Subnet mask octet (/29)370248
Subnet mask octet (/30)374252
Subnet mask octet (/31)376254
Subnet mask octet (/24)377255
SSH port2622
SMTP port3125
DNS port6553
HTTP port12080
HTTPS port673443
MySQL port63523306
PostgreSQL port124705432
Alternate HTTP port176208080
Loopback first octet177127
Private IP first octet (10.x.x.x)1210
Private IP first octet (192.168.x.x)300192
Private IP second octet (192.168.x.x)250168
Ten1210
One hundred144100
One thousand17501000
Max signed 8-bit177127
Max unsigned 8-bit377255
Values in a byte400256
One kibibyte20001024
Page size100004096
Max signed 16-bit7777732767
Max unsigned 16-bit17777765535
Values in 16 bits20000065536
Max RGB hex FFFFFF7777777716777215
Max signed 32-bit177777777772147483647
Max unsigned 32-bit377777777774294967295
Days from 1970 to 20002531510957
ASCII letter A10165
ASCII letter a14197
ASCII digit 06048
ASCII space4032
ASCII line feed1210

Common chmod Modes: Octal to Decimal

Octal modeDecimalSymbolicUse
755493rwxr-xr-xExecutables, directories
644420rw-r--r--Regular files
777511rwxrwxrwxEveryone full access
600384rw-------Private file
700448rwx------Private directory or script
664436rw-rw-r--Group writable file
750488rwxr-x---Group can read and run
640416rw-r-----Group can read
444292r--r--r--Read only for all
775509rwxrwxr-xGroup writable directory

Octal to Signed Decimal (Two's Complement)

OctalUnsigned decimalSigned decimalBits
000008
001118
1761261268
1771271278
200128-1288
201129-1278
307199-578
366246-108
373251-58
376254-28
377255-18
77777327673276716
10000032768-3276816
17777365531-516
17777765535-116
200000000002147483648-214748364832
377777777774294967295-132

Octal Fractions in Decimal

OctalDecimal
0.40.5
0.20.25
0.10.125
0.040.0625
0.50.625
0.540.6875
1.41.5
2.22.25
12.310.375
56.346.375
153.7107.875
377.377255.498046875
0.0630.099609375
7.77.875

Technical Q&A / FAQ Matrix

Technical Developer QuestionExact Solution & Code Snippet
How do I convert octal to decimal in JavaScript?parseInt('755', 8)
How do I convert octal to decimal in Python?int('755', 8)
How do I convert octal to decimal in Go?strconv.ParseInt("755", 8, 64)
How do I convert octal to decimal in Java?Integer.parseInt("755", 8)
How do I convert octal to decimal in C#?Convert.ToInt32("755", 8)
How do I convert octal to decimal in PHP?echo octdec('755');
How do I convert octal to decimal in Rust?i64::from_str_radix("755", 8).unwrap()
How do I convert octal to decimal on Linux?echo $((8#755))
How do I convert octal to decimal by hand?Multiply each digit by 8 raised to its position, counting from 0 on the right, then add. 755 = 7 x 64 + 5 x 8 + 5 x 1 = 448 + 40 + 5 = 493.
What is the decimal value of octal 777?511. That is 7 x 64 + 7 x 8 + 7, the largest 3-digit octal number, and the chmod mode rwxrwxrwx.
How do I read a chmod mode in decimal?Each octal digit is one permission group. 755 is 493 in decimal and 644 is 420. Programs such as os.chmod() in Python accept either form when written as 0o755 or 493.
Why does a leading 0 mean octal in some languages?C, JavaScript (older sloppy mode), PHP and the shell treat 0755 as octal, so 0755 is 493 and not 755. Modern JavaScript uses the explicit 0o755 form.
How do I convert signed octal to a negative decimal?Set Read as to Two's complement. In 8 bits, 377 is -1 and 200 is -128. In 16 bits, 177777 is -1 and 100000 is -32768.
How do I convert an octal fraction to decimal?Divide each digit after the point by 8, 64 and so on. 0.4 is 4/8 = 0.5, and 56.3 is 46 + 3/8 = 46.375.
Why do I get an invalid character error?Octal uses only the digits 0 to 7. Remove 8, 9, letters and stray symbols. A 0o prefix, spaces and underscores are ignored.
How do I convert decimal back to octal?JavaScript: (493).toString(8). Python: format(493, 'o'). Result: 755.