How to Convert Binary to Octal
Enter an integer using 0 and 1. The converter reads it in base 2 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 Binary and Octal Represent Values
In binary, each place is a power of 2; 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.
Binary to Octal Conversion Examples
For example, 101010 in binary 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 Binary to Octal
Converting binary 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.
- Starting from the right, split the binary number into groups of 3 digits. Pad the leftmost group with leading zeros if it is short.
- Write the place values 4, 2, 1 underneath each group.
- In every group, add the place values wherever the bit is 1.
- Convert each group total into a single octal digit.
- Write the octal digits in the same left to right order as the groups.
Worked example: 111101101
Result: (111101101)² = (755)⁸
The Binary System
Binary is the base 2 numeral system. It uses only two symbols, 0 and 1, and each digit is called a bit. Every digital circuit ever built relies on it, because a transistor has two reliable states, on and off, which map directly onto 1 and 0. Place values double as you move left: 1, 2, 4, 8, 16, 32 and so on. Eight bits make one byte, which can hold 256 distinct values, enough for every character in the original ASCII set.
Binary uses the digits 0 and 1.
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.
Binary to Octal Conversion Examples
Binary 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.
| Binary | Octal |
|---|---|
| 00000001 | 1 |
| 00000010 | 2 |
| 00000011 | 3 |
| 00000100 | 4 |
| 00000101 | 5 |
| 00000110 | 6 |
| 00000111 | 7 |
| 00001000 | 10 |
| 00001001 | 11 |
| 00001010 | 12 |
| 00001011 | 13 |
| 00001100 | 14 |
| 00001101 | 15 |
| 00001110 | 16 |
| 00001111 | 17 |
| 00010000 | 20 |
| 00010001 | 21 |
| 00010010 | 22 |
| 00010011 | 23 |
| 00010100 | 24 |
| 00010101 | 25 |
| 00010110 | 26 |
| 00010111 | 27 |
| 00011000 | 30 |
| 00011001 | 31 |
| 00011010 | 32 |
| 00011011 | 33 |
| 00011100 | 34 |
| 00011101 | 35 |
| 00011110 | 36 |
| 00011111 | 37 |
| 00100000 | 40 |
| 00100001 | 41 |
| 00100010 | 42 |
| 00100011 | 43 |
| 00100100 | 44 |
| 00100101 | 45 |
| 00100110 | 46 |
| 00100111 | 47 |
| 00101000 | 50 |
| 00101001 | 51 |
| 00101010 | 52 |
| 00101011 | 53 |
| 00101100 | 54 |
| 00101101 | 55 |
| 00101110 | 56 |
| 00101111 | 57 |
| 00110000 | 60 |
| 00110001 | 61 |
| 00110010 | 62 |
| 00110011 | 63 |
| 00110100 | 64 |
| 00110101 | 65 |
| 00110110 | 66 |
| 00110111 | 67 |
| 00111000 | 70 |
| 00111001 | 71 |
| 00111010 | 72 |
| 00111011 | 73 |
| 00111100 | 74 |
| 00111101 | 75 |
| 00111110 | 76 |
| 00111111 | 77 |
| 01000000 | 100 |
| Binary | Octal |
|---|---|
| 01000001 | 101 |
| 01000010 | 102 |
| 01000011 | 103 |
| 01000100 | 104 |
| 01000101 | 105 |
| 01000110 | 106 |
| 01000111 | 107 |
| 01001000 | 110 |
| 01001001 | 111 |
| 01001010 | 112 |
| 01001011 | 113 |
| 01001100 | 114 |
| 01001101 | 115 |
| 01001110 | 116 |
| 01001111 | 117 |
| 01010000 | 120 |
| 01010001 | 121 |
| 01010010 | 122 |
| 01010011 | 123 |
| 01010100 | 124 |
| 01010101 | 125 |
| 01010110 | 126 |
| 01010111 | 127 |
| 01011000 | 130 |
| 01011001 | 131 |
| 01011010 | 132 |
| 01011011 | 133 |
| 01011100 | 134 |
| 01011101 | 135 |
| 01011110 | 136 |
| 01011111 | 137 |
| 01100000 | 140 |
| 01100001 | 141 |
| 01100010 | 142 |
| 01100011 | 143 |
| 01100100 | 144 |
| 01100101 | 145 |
| 01100110 | 146 |
| 01100111 | 147 |
| 01101000 | 150 |
| 01101001 | 151 |
| 01101010 | 152 |
| 01101011 | 153 |
| 01101100 | 154 |
| 01101101 | 155 |
| 01101110 | 156 |
| 01101111 | 157 |
| 01110000 | 160 |
| 01110001 | 161 |
| 01110010 | 162 |
| 01110011 | 163 |
| 01110100 | 164 |
| 01110101 | 165 |
| 01110110 | 166 |
| 01110111 | 167 |
| 01111000 | 170 |
| 01111001 | 171 |
| 01111010 | 172 |
| 01111011 | 173 |
| 01111100 | 174 |
| 01111101 | 175 |
| 01111110 | 176 |
| 01111111 | 177 |
| 10000000 | 200 |
| Binary | Octal |
|---|---|
| 10000001 | 201 |
| 10000010 | 202 |
| 10000011 | 203 |
| 10000100 | 204 |
| 10000101 | 205 |
| 10000110 | 206 |
| 10000111 | 207 |
| 10001000 | 210 |
| 10001001 | 211 |
| 10001010 | 212 |
| 10001011 | 213 |
| 10001100 | 214 |
| 10001101 | 215 |
| 10001110 | 216 |
| 10001111 | 217 |
| 10010000 | 220 |
| 10010001 | 221 |
| 10010010 | 222 |
| 10010011 | 223 |
| 10010100 | 224 |
| 10010101 | 225 |
| 10010110 | 226 |
| 10010111 | 227 |
| 10011000 | 230 |
| 10011001 | 231 |
| 10011010 | 232 |
| 10011011 | 233 |
| 10011100 | 234 |
| 10011101 | 235 |
| 10011110 | 236 |
| 10011111 | 237 |
| 10100000 | 240 |
| 10100001 | 241 |
| 10100010 | 242 |
| 10100011 | 243 |
| 10100100 | 244 |
| 10100101 | 245 |
| 10100110 | 246 |
| 10100111 | 247 |
| 10101000 | 250 |
| 10101001 | 251 |
| 10101010 | 252 |
| 10101011 | 253 |
| 10101100 | 254 |
| 10101101 | 255 |
| 10101110 | 256 |
| 10101111 | 257 |
| 10110000 | 260 |
| 10110001 | 261 |
| 10110010 | 262 |
| 10110011 | 263 |
| 10110100 | 264 |
| 10110101 | 265 |
| 10110110 | 266 |
| 10110111 | 267 |
| 10111000 | 270 |
| 10111001 | 271 |
| 10111010 | 272 |
| 10111011 | 273 |
| 10111100 | 274 |
| 10111101 | 275 |
| 10111110 | 276 |
| 10111111 | 277 |
| 11000000 | 300 |
| Binary | Octal |
|---|---|
| 11000001 | 301 |
| 11000010 | 302 |
| 11000011 | 303 |
| 11000100 | 304 |
| 11000101 | 305 |
| 11000110 | 306 |
| 11000111 | 307 |
| 11001000 | 310 |
| 11001001 | 311 |
| 11001010 | 312 |
| 11001011 | 313 |
| 11001100 | 314 |
| 11001101 | 315 |
| 11001110 | 316 |
| 11001111 | 317 |
| 11010000 | 320 |
| 11010001 | 321 |
| 11010010 | 322 |
| 11010011 | 323 |
| 11010100 | 324 |
| 11010101 | 325 |
| 11010110 | 326 |
| 11010111 | 327 |
| 11011000 | 330 |
| 11011001 | 331 |
| 11011010 | 332 |
| 11011011 | 333 |
| 11011100 | 334 |
| 11011101 | 335 |
| 11011110 | 336 |
| 11011111 | 337 |
| 11100000 | 340 |
| 11100001 | 341 |
| 11100010 | 342 |
| 11100011 | 343 |
| 11100100 | 344 |
| 11100101 | 345 |
| 11100110 | 346 |
| 11100111 | 347 |
| 11101000 | 350 |
| 11101001 | 351 |
| 11101010 | 352 |
| 11101011 | 353 |
| 11101100 | 354 |
| 11101101 | 355 |
| 11101110 | 356 |
| 11101111 | 357 |
| 11110000 | 360 |
| 11110001 | 361 |
| 11110010 | 362 |
| 11110011 | 363 |
| 11110100 | 364 |
| 11110101 | 365 |
| 11110110 | 366 |
| 11110111 | 367 |
| 11111000 | 370 |
| 11111001 | 371 |
| 11111010 | 372 |
| 11111011 | 373 |
| 11111100 | 374 |
| 11111101 | 375 |
| 11111110 | 376 |
| 11111111 | 377 |
| 100000000 | 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 binary to octal?
Read the input as base 2 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 binary 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.