How to Convert Decimal to Octal
Enter an integer using 0 through 9. The converter reads it in base 10 and writes the same value in base 8. Copy the output or reverse the direction to verify it. Whitespace grouping does not change the value.
How Decimal and Octal Represent Values
In decimal, each place is a power of 10; in octal, each place is a power of 8. Starting at the right, multiply each digit by its place value and add the results. Conversion changes notation, not magnitude.
Decimal to Octal Conversion Examples
For example, 42 in decimal equals 52 in octal, and both equal decimal 42. Work through the positional sum on a small example before converting a long identifier. Leading zeros affect display width but not the integer value.
Common Uses and Edge Cases
The tool accepts signed integers and uses exact integer arithmetic. It does not interpret a negative value as a fixed-width two’s-complement bit pattern. Fractions and scientific notation are not supported. Use the text translators for encoded bytes rather than treating a whole message as one number.
More examples and technical details
How to Convert Decimal to Octal
Converting decimal to octal by hand is straightforward once you know the routine. The converter above does it instantly, but working through the steps yourself is the fastest way to understand what is actually happening to the digits.
- Divide the decimal number by 8 and write down the quotient and the remainder.
- Divide the new quotient by 8 again, recording each remainder as you go.
- Repeat until the quotient reaches 0.
- Read the remainders from the bottom up. That sequence is the octal result.
Worked example: 2014
Result: (2014)¹⁰ = (3736)⁸
The Decimal System
Decimal is the base 10 system that almost every human culture settled on, most likely because we have ten fingers. It uses the digits 0 through 9, and each position is worth ten times the position to its right. The number 2345.67 means 2 thousands, 3 hundreds, 4 tens, 5 ones, 6 tenths, and 7 hundredths. It is the default for everything people read, which is why converting to and from decimal is the most common base conversion a programmer performs.
Decimal uses the digits 0 through 9.
The Octal System
Octal is the base 8 numeral system and uses the digits 0 through 7. Its usefulness comes from the fact that one octal digit maps exactly onto three binary digits, so it is a compact way to write binary without doing real arithmetic. Octal was common on early minicomputers with 12, 24, and 36 bit words. Today the place most developers still meet it is Unix file permissions, where a command such as chmod 755 sets read, write, and execute bits three at a time.
Octal uses the digits 0 through 7.
Decimal to Octal Conversion Examples
Decimal to Octal Conversion Chart
A full reference table for the values 1 to 256. Use it to check a conversion quickly or to look up a common value without typing anything.
| Decimal | Octal |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 10 |
| 9 | 11 |
| 10 | 12 |
| 11 | 13 |
| 12 | 14 |
| 13 | 15 |
| 14 | 16 |
| 15 | 17 |
| 16 | 20 |
| 17 | 21 |
| 18 | 22 |
| 19 | 23 |
| 20 | 24 |
| 21 | 25 |
| 22 | 26 |
| 23 | 27 |
| 24 | 30 |
| 25 | 31 |
| 26 | 32 |
| 27 | 33 |
| 28 | 34 |
| 29 | 35 |
| 30 | 36 |
| 31 | 37 |
| 32 | 40 |
| 33 | 41 |
| 34 | 42 |
| 35 | 43 |
| 36 | 44 |
| 37 | 45 |
| 38 | 46 |
| 39 | 47 |
| 40 | 50 |
| 41 | 51 |
| 42 | 52 |
| 43 | 53 |
| 44 | 54 |
| 45 | 55 |
| 46 | 56 |
| 47 | 57 |
| 48 | 60 |
| 49 | 61 |
| 50 | 62 |
| 51 | 63 |
| 52 | 64 |
| 53 | 65 |
| 54 | 66 |
| 55 | 67 |
| 56 | 70 |
| 57 | 71 |
| 58 | 72 |
| 59 | 73 |
| 60 | 74 |
| 61 | 75 |
| 62 | 76 |
| 63 | 77 |
| 64 | 100 |
| Decimal | Octal |
|---|---|
| 65 | 101 |
| 66 | 102 |
| 67 | 103 |
| 68 | 104 |
| 69 | 105 |
| 70 | 106 |
| 71 | 107 |
| 72 | 110 |
| 73 | 111 |
| 74 | 112 |
| 75 | 113 |
| 76 | 114 |
| 77 | 115 |
| 78 | 116 |
| 79 | 117 |
| 80 | 120 |
| 81 | 121 |
| 82 | 122 |
| 83 | 123 |
| 84 | 124 |
| 85 | 125 |
| 86 | 126 |
| 87 | 127 |
| 88 | 130 |
| 89 | 131 |
| 90 | 132 |
| 91 | 133 |
| 92 | 134 |
| 93 | 135 |
| 94 | 136 |
| 95 | 137 |
| 96 | 140 |
| 97 | 141 |
| 98 | 142 |
| 99 | 143 |
| 100 | 144 |
| 101 | 145 |
| 102 | 146 |
| 103 | 147 |
| 104 | 150 |
| 105 | 151 |
| 106 | 152 |
| 107 | 153 |
| 108 | 154 |
| 109 | 155 |
| 110 | 156 |
| 111 | 157 |
| 112 | 160 |
| 113 | 161 |
| 114 | 162 |
| 115 | 163 |
| 116 | 164 |
| 117 | 165 |
| 118 | 166 |
| 119 | 167 |
| 120 | 170 |
| 121 | 171 |
| 122 | 172 |
| 123 | 173 |
| 124 | 174 |
| 125 | 175 |
| 126 | 176 |
| 127 | 177 |
| 128 | 200 |
| Decimal | Octal |
|---|---|
| 129 | 201 |
| 130 | 202 |
| 131 | 203 |
| 132 | 204 |
| 133 | 205 |
| 134 | 206 |
| 135 | 207 |
| 136 | 210 |
| 137 | 211 |
| 138 | 212 |
| 139 | 213 |
| 140 | 214 |
| 141 | 215 |
| 142 | 216 |
| 143 | 217 |
| 144 | 220 |
| 145 | 221 |
| 146 | 222 |
| 147 | 223 |
| 148 | 224 |
| 149 | 225 |
| 150 | 226 |
| 151 | 227 |
| 152 | 230 |
| 153 | 231 |
| 154 | 232 |
| 155 | 233 |
| 156 | 234 |
| 157 | 235 |
| 158 | 236 |
| 159 | 237 |
| 160 | 240 |
| 161 | 241 |
| 162 | 242 |
| 163 | 243 |
| 164 | 244 |
| 165 | 245 |
| 166 | 246 |
| 167 | 247 |
| 168 | 250 |
| 169 | 251 |
| 170 | 252 |
| 171 | 253 |
| 172 | 254 |
| 173 | 255 |
| 174 | 256 |
| 175 | 257 |
| 176 | 260 |
| 177 | 261 |
| 178 | 262 |
| 179 | 263 |
| 180 | 264 |
| 181 | 265 |
| 182 | 266 |
| 183 | 267 |
| 184 | 270 |
| 185 | 271 |
| 186 | 272 |
| 187 | 273 |
| 188 | 274 |
| 189 | 275 |
| 190 | 276 |
| 191 | 277 |
| 192 | 300 |
| Decimal | Octal |
|---|---|
| 193 | 301 |
| 194 | 302 |
| 195 | 303 |
| 196 | 304 |
| 197 | 305 |
| 198 | 306 |
| 199 | 307 |
| 200 | 310 |
| 201 | 311 |
| 202 | 312 |
| 203 | 313 |
| 204 | 314 |
| 205 | 315 |
| 206 | 316 |
| 207 | 317 |
| 208 | 320 |
| 209 | 321 |
| 210 | 322 |
| 211 | 323 |
| 212 | 324 |
| 213 | 325 |
| 214 | 326 |
| 215 | 327 |
| 216 | 330 |
| 217 | 331 |
| 218 | 332 |
| 219 | 333 |
| 220 | 334 |
| 221 | 335 |
| 222 | 336 |
| 223 | 337 |
| 224 | 340 |
| 225 | 341 |
| 226 | 342 |
| 227 | 343 |
| 228 | 344 |
| 229 | 345 |
| 230 | 346 |
| 231 | 347 |
| 232 | 350 |
| 233 | 351 |
| 234 | 352 |
| 235 | 353 |
| 236 | 354 |
| 237 | 355 |
| 238 | 356 |
| 239 | 357 |
| 240 | 360 |
| 241 | 361 |
| 242 | 362 |
| 243 | 363 |
| 244 | 364 |
| 245 | 365 |
| 246 | 366 |
| 247 | 367 |
| 248 | 370 |
| 249 | 371 |
| 250 | 372 |
| 251 | 373 |
| 252 | 374 |
| 253 | 375 |
| 254 | 376 |
| 255 | 377 |
| 256 | 400 |
Need a different pair of bases? Browse every number converter tool including binary, octal, decimal, and hexadecimal in both directions.
Frequently asked questions
How do I convert decimal to octal?
Read the input as base 10 and express its value in base 8; enter it here for an automatic result.
Can this converter handle negative or large values?
Yes. Signed and large integers use exact BigInt arithmetic, subject to practical browser resource limits. Fractions are not supported.
How can I verify the octal result?
Convert octal back to decimal and compare the numeric value; leading zeros may be normalized.
Is the conversion processed in my browser?
Yes. No number is sent to a conversion server.