Octal to Binary Converter
Save on GoogleTip: enter one number to see the digit-by-digit steps, decimal 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 |
|---|---|
| Binary to Octal Converter | Groups binary bits in threes and converts them into octal digits. |
| Binary to Decimal Converter | Converts binary numbers into decimal with bit-by-bit steps, hex and octal. |
| Decimal to Binary Converter | Converts decimal numbers into binary with steps, 2's complement and hex. |
| Octal to Text Converter | Decodes octal bytes (110 145 154 154 157) back into readable text. |
| Text to Octal Converter | Converts text into octal bytes with separator, digits and prefix options. |
| Binary to Text Converter | Decodes binary (0s and 1s) back into readable text. |
| Text to Binary Converter | Converts text into 8-bit or 7-bit binary (0s and 1s) instantly. |
| Base64 Encode / Decode | Encodes text or files to Base64 and decodes Base64 strings instantly. |
| JSON to Go Struct Converter | Generates idiomatic Go structs with json tags from any JSON payload. |
| JSON to TypeScript Interface | Generates typed TypeScript interfaces from any JSON payload. |
| HTML to JSX Converter | Converts HTML markup into valid React JSX (className, self-closing tags, style objects). |
| TOML to JSON Converter | Transforms TOML config files into clean, formatted JSON or YAML. |
Example 1: Convert 153 to Binary
| Octal digit | Binary (3 bits) | Part |
|---|---|---|
| 1 | 001 | integer |
| 5 | 101 | integer |
| 3 | 011 | integer |
Join 001 101 011 and drop the leading zeros: 1101011.
Example 2: Convert 56.3 to Binary
| Octal digit | Binary (3 bits) | Part |
|---|---|---|
| 5 | 101 | integer |
| 6 | 110 | integer |
| 3 | 011 | fraction |
Join 101 110 . 011: 101110.011.
Octal Digit to Binary Table (0-7)
| Octal digit | Binary (3-bit) | Decimal |
|---|---|---|
| 0 | 000 | 0 |
| 1 | 001 | 1 |
| 2 | 010 | 2 |
| 3 | 011 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
Octal to Binary Table (000-377)
| Octal (3-digit) | Binary | Decimal | Hex |
|---|---|---|---|
| 000 | 0 | 0 | 00 |
| 001 | 1 | 1 | 01 |
| 002 | 10 | 2 | 02 |
| 003 | 11 | 3 | 03 |
| 004 | 100 | 4 | 04 |
| 005 | 101 | 5 | 05 |
| 006 | 110 | 6 | 06 |
| 007 | 111 | 7 | 07 |
| 010 | 1000 | 8 | 08 |
| 011 | 1001 | 9 | 09 |
| 012 | 1010 | 10 | 0A |
| 013 | 1011 | 11 | 0B |
| 014 | 1100 | 12 | 0C |
| 015 | 1101 | 13 | 0D |
| 016 | 1110 | 14 | 0E |
| 017 | 1111 | 15 | 0F |
| 020 | 10000 | 16 | 10 |
| 021 | 10001 | 17 | 11 |
| 022 | 10010 | 18 | 12 |
| 023 | 10011 | 19 | 13 |
| 024 | 10100 | 20 | 14 |
| 025 | 10101 | 21 | 15 |
| 026 | 10110 | 22 | 16 |
| 027 | 10111 | 23 | 17 |
| 030 | 11000 | 24 | 18 |
| 031 | 11001 | 25 | 19 |
| 032 | 11010 | 26 | 1A |
| 033 | 11011 | 27 | 1B |
| 034 | 11100 | 28 | 1C |
| 035 | 11101 | 29 | 1D |
| 036 | 11110 | 30 | 1E |
| 037 | 11111 | 31 | 1F |
| 040 | 100000 | 32 | 20 |
| 041 | 100001 | 33 | 21 |
| 042 | 100010 | 34 | 22 |
| 043 | 100011 | 35 | 23 |
| 044 | 100100 | 36 | 24 |
| 045 | 100101 | 37 | 25 |
| 046 | 100110 | 38 | 26 |
| 047 | 100111 | 39 | 27 |
| 050 | 101000 | 40 | 28 |
| 051 | 101001 | 41 | 29 |
| 052 | 101010 | 42 | 2A |
| 053 | 101011 | 43 | 2B |
| 054 | 101100 | 44 | 2C |
| 055 | 101101 | 45 | 2D |
| 056 | 101110 | 46 | 2E |
| 057 | 101111 | 47 | 2F |
| 060 | 110000 | 48 | 30 |
| 061 | 110001 | 49 | 31 |
| 062 | 110010 | 50 | 32 |
| 063 | 110011 | 51 | 33 |
| 064 | 110100 | 52 | 34 |
| 065 | 110101 | 53 | 35 |
| 066 | 110110 | 54 | 36 |
| 067 | 110111 | 55 | 37 |
| 070 | 111000 | 56 | 38 |
| 071 | 111001 | 57 | 39 |
| 072 | 111010 | 58 | 3A |
| 073 | 111011 | 59 | 3B |
| 074 | 111100 | 60 | 3C |
| 075 | 111101 | 61 | 3D |
| 076 | 111110 | 62 | 3E |
| 077 | 111111 | 63 | 3F |
| 100 | 1000000 | 64 | 40 |
| 101 | 1000001 | 65 | 41 |
| 102 | 1000010 | 66 | 42 |
| 103 | 1000011 | 67 | 43 |
| 104 | 1000100 | 68 | 44 |
| 105 | 1000101 | 69 | 45 |
| 106 | 1000110 | 70 | 46 |
| 107 | 1000111 | 71 | 47 |
| 110 | 1001000 | 72 | 48 |
| 111 | 1001001 | 73 | 49 |
| 112 | 1001010 | 74 | 4A |
| 113 | 1001011 | 75 | 4B |
| 114 | 1001100 | 76 | 4C |
| 115 | 1001101 | 77 | 4D |
| 116 | 1001110 | 78 | 4E |
| 117 | 1001111 | 79 | 4F |
| 120 | 1010000 | 80 | 50 |
| 121 | 1010001 | 81 | 51 |
| 122 | 1010010 | 82 | 52 |
| 123 | 1010011 | 83 | 53 |
| 124 | 1010100 | 84 | 54 |
| 125 | 1010101 | 85 | 55 |
| 126 | 1010110 | 86 | 56 |
| 127 | 1010111 | 87 | 57 |
| 130 | 1011000 | 88 | 58 |
| 131 | 1011001 | 89 | 59 |
| 132 | 1011010 | 90 | 5A |
| 133 | 1011011 | 91 | 5B |
| 134 | 1011100 | 92 | 5C |
| 135 | 1011101 | 93 | 5D |
| 136 | 1011110 | 94 | 5E |
| 137 | 1011111 | 95 | 5F |
| 140 | 1100000 | 96 | 60 |
| 141 | 1100001 | 97 | 61 |
| 142 | 1100010 | 98 | 62 |
| 143 | 1100011 | 99 | 63 |
| 144 | 1100100 | 100 | 64 |
| 145 | 1100101 | 101 | 65 |
| 146 | 1100110 | 102 | 66 |
| 147 | 1100111 | 103 | 67 |
| 150 | 1101000 | 104 | 68 |
| 151 | 1101001 | 105 | 69 |
| 152 | 1101010 | 106 | 6A |
| 153 | 1101011 | 107 | 6B |
| 154 | 1101100 | 108 | 6C |
| 155 | 1101101 | 109 | 6D |
| 156 | 1101110 | 110 | 6E |
| 157 | 1101111 | 111 | 6F |
| 160 | 1110000 | 112 | 70 |
| 161 | 1110001 | 113 | 71 |
| 162 | 1110010 | 114 | 72 |
| 163 | 1110011 | 115 | 73 |
| 164 | 1110100 | 116 | 74 |
| 165 | 1110101 | 117 | 75 |
| 166 | 1110110 | 118 | 76 |
| 167 | 1110111 | 119 | 77 |
| 170 | 1111000 | 120 | 78 |
| 171 | 1111001 | 121 | 79 |
| 172 | 1111010 | 122 | 7A |
| 173 | 1111011 | 123 | 7B |
| 174 | 1111100 | 124 | 7C |
| 175 | 1111101 | 125 | 7D |
| 176 | 1111110 | 126 | 7E |
| 177 | 1111111 | 127 | 7F |
| 200 | 10000000 | 128 | 80 |
| 201 | 10000001 | 129 | 81 |
| 202 | 10000010 | 130 | 82 |
| 203 | 10000011 | 131 | 83 |
| 204 | 10000100 | 132 | 84 |
| 205 | 10000101 | 133 | 85 |
| 206 | 10000110 | 134 | 86 |
| 207 | 10000111 | 135 | 87 |
| 210 | 10001000 | 136 | 88 |
| 211 | 10001001 | 137 | 89 |
| 212 | 10001010 | 138 | 8A |
| 213 | 10001011 | 139 | 8B |
| 214 | 10001100 | 140 | 8C |
| 215 | 10001101 | 141 | 8D |
| 216 | 10001110 | 142 | 8E |
| 217 | 10001111 | 143 | 8F |
| 220 | 10010000 | 144 | 90 |
| 221 | 10010001 | 145 | 91 |
| 222 | 10010010 | 146 | 92 |
| 223 | 10010011 | 147 | 93 |
| 224 | 10010100 | 148 | 94 |
| 225 | 10010101 | 149 | 95 |
| 226 | 10010110 | 150 | 96 |
| 227 | 10010111 | 151 | 97 |
| 230 | 10011000 | 152 | 98 |
| 231 | 10011001 | 153 | 99 |
| 232 | 10011010 | 154 | 9A |
| 233 | 10011011 | 155 | 9B |
| 234 | 10011100 | 156 | 9C |
| 235 | 10011101 | 157 | 9D |
| 236 | 10011110 | 158 | 9E |
| 237 | 10011111 | 159 | 9F |
| 240 | 10100000 | 160 | A0 |
| 241 | 10100001 | 161 | A1 |
| 242 | 10100010 | 162 | A2 |
| 243 | 10100011 | 163 | A3 |
| 244 | 10100100 | 164 | A4 |
| 245 | 10100101 | 165 | A5 |
| 246 | 10100110 | 166 | A6 |
| 247 | 10100111 | 167 | A7 |
| 250 | 10101000 | 168 | A8 |
| 251 | 10101001 | 169 | A9 |
| 252 | 10101010 | 170 | AA |
| 253 | 10101011 | 171 | AB |
| 254 | 10101100 | 172 | AC |
| 255 | 10101101 | 173 | AD |
| 256 | 10101110 | 174 | AE |
| 257 | 10101111 | 175 | AF |
| 260 | 10110000 | 176 | B0 |
| 261 | 10110001 | 177 | B1 |
| 262 | 10110010 | 178 | B2 |
| 263 | 10110011 | 179 | B3 |
| 264 | 10110100 | 180 | B4 |
| 265 | 10110101 | 181 | B5 |
| 266 | 10110110 | 182 | B6 |
| 267 | 10110111 | 183 | B7 |
| 270 | 10111000 | 184 | B8 |
| 271 | 10111001 | 185 | B9 |
| 272 | 10111010 | 186 | BA |
| 273 | 10111011 | 187 | BB |
| 274 | 10111100 | 188 | BC |
| 275 | 10111101 | 189 | BD |
| 276 | 10111110 | 190 | BE |
| 277 | 10111111 | 191 | BF |
| 300 | 11000000 | 192 | C0 |
| 301 | 11000001 | 193 | C1 |
| 302 | 11000010 | 194 | C2 |
| 303 | 11000011 | 195 | C3 |
| 304 | 11000100 | 196 | C4 |
| 305 | 11000101 | 197 | C5 |
| 306 | 11000110 | 198 | C6 |
| 307 | 11000111 | 199 | C7 |
| 310 | 11001000 | 200 | C8 |
| 311 | 11001001 | 201 | C9 |
| 312 | 11001010 | 202 | CA |
| 313 | 11001011 | 203 | CB |
| 314 | 11001100 | 204 | CC |
| 315 | 11001101 | 205 | CD |
| 316 | 11001110 | 206 | CE |
| 317 | 11001111 | 207 | CF |
| 320 | 11010000 | 208 | D0 |
| 321 | 11010001 | 209 | D1 |
| 322 | 11010010 | 210 | D2 |
| 323 | 11010011 | 211 | D3 |
| 324 | 11010100 | 212 | D4 |
| 325 | 11010101 | 213 | D5 |
| 326 | 11010110 | 214 | D6 |
| 327 | 11010111 | 215 | D7 |
| 330 | 11011000 | 216 | D8 |
| 331 | 11011001 | 217 | D9 |
| 332 | 11011010 | 218 | DA |
| 333 | 11011011 | 219 | DB |
| 334 | 11011100 | 220 | DC |
| 335 | 11011101 | 221 | DD |
| 336 | 11011110 | 222 | DE |
| 337 | 11011111 | 223 | DF |
| 340 | 11100000 | 224 | E0 |
| 341 | 11100001 | 225 | E1 |
| 342 | 11100010 | 226 | E2 |
| 343 | 11100011 | 227 | E3 |
| 344 | 11100100 | 228 | E4 |
| 345 | 11100101 | 229 | E5 |
| 346 | 11100110 | 230 | E6 |
| 347 | 11100111 | 231 | E7 |
| 350 | 11101000 | 232 | E8 |
| 351 | 11101001 | 233 | E9 |
| 352 | 11101010 | 234 | EA |
| 353 | 11101011 | 235 | EB |
| 354 | 11101100 | 236 | EC |
| 355 | 11101101 | 237 | ED |
| 356 | 11101110 | 238 | EE |
| 357 | 11101111 | 239 | EF |
| 360 | 11110000 | 240 | F0 |
| 361 | 11110001 | 241 | F1 |
| 362 | 11110010 | 242 | F2 |
| 363 | 11110011 | 243 | F3 |
| 364 | 11110100 | 244 | F4 |
| 365 | 11110101 | 245 | F5 |
| 366 | 11110110 | 246 | F6 |
| 367 | 11110111 | 247 | F7 |
| 370 | 11111000 | 248 | F8 |
| 371 | 11111001 | 249 | F9 |
| 372 | 11111010 | 250 | FA |
| 373 | 11111011 | 251 | FB |
| 374 | 11111100 | 252 | FC |
| 375 | 11111101 | 253 | FD |
| 376 | 11111110 | 254 | FE |
| 377 | 11111111 | 255 | FF |
Common Octal Numbers in Binary
| Number | Octal | Binary | Decimal |
|---|---|---|---|
| Subnet mask octet (/25) | 200 | 10000000 | 128 |
| Subnet mask octet (/26) | 300 | 11000000 | 192 |
| Subnet mask octet (/27) | 340 | 11100000 | 224 |
| Subnet mask octet (/28) | 360 | 11110000 | 240 |
| Subnet mask octet (/29) | 370 | 11111000 | 248 |
| Subnet mask octet (/30) | 374 | 11111100 | 252 |
| Subnet mask octet (/31) | 376 | 11111110 | 254 |
| Subnet mask octet (/24) | 377 | 11111111 | 255 |
| SSH port | 26 | 10110 | 22 |
| SMTP port | 31 | 11001 | 25 |
| DNS port | 65 | 110101 | 53 |
| HTTP port | 120 | 1010000 | 80 |
| HTTPS port | 673 | 110111011 | 443 |
| MySQL port | 6352 | 110011101010 | 3306 |
| PostgreSQL port | 12470 | 1010100111000 | 5432 |
| Alternate HTTP port | 17620 | 1111110010000 | 8080 |
| Loopback first octet | 177 | 1111111 | 127 |
| Private IP first octet (10.x.x.x) | 12 | 1010 | 10 |
| Private IP first octet (192.168.x.x) | 300 | 11000000 | 192 |
| Private IP second octet (192.168.x.x) | 250 | 10101000 | 168 |
| Ten | 12 | 1010 | 10 |
| One hundred | 144 | 1100100 | 100 |
| One thousand | 1750 | 1111101000 | 1000 |
| Max signed 8-bit | 177 | 1111111 | 127 |
| Max unsigned 8-bit | 377 | 11111111 | 255 |
| Values in a byte | 400 | 100000000 | 256 |
| One kibibyte | 2000 | 10000000000 | 1024 |
| Page size | 10000 | 1000000000000 | 4096 |
| Max signed 16-bit | 77777 | 111111111111111 | 32767 |
| Max unsigned 16-bit | 177777 | 1111111111111111 | 65535 |
| Values in 16 bits | 200000 | 10000000000000000 | 65536 |
| Max RGB hex FFFFFF | 77777777 | 111111111111111111111111 | 16777215 |
| Max signed 32-bit | 17777777777 | 1111111111111111111111111111111 | 2147483647 |
| Max unsigned 32-bit | 37777777777 | 11111111111111111111111111111111 | 4294967295 |
| Days from 1970 to 2000 | 25315 | 10101011001101 | 10957 |
| ASCII letter A | 101 | 1000001 | 65 |
| ASCII letter a | 141 | 1100001 | 97 |
| ASCII digit 0 | 60 | 110000 | 48 |
| ASCII space | 40 | 100000 | 32 |
| ASCII line feed | 12 | 1010 | 10 |
Common chmod Modes: Octal to Binary
| Octal mode | Binary groups | Symbolic | Use |
|---|---|---|---|
| 755 | 111 101 101 | rwxr-xr-x | Executables, directories |
| 644 | 110 100 100 | rw-r--r-- | Regular files |
| 777 | 111 111 111 | rwxrwxrwx | Everyone full access |
| 600 | 110 000 000 | rw------- | Private file |
| 700 | 111 000 000 | rwx------ | Private directory or script |
| 664 | 110 110 100 | rw-rw-r-- | Group writable file |
| 750 | 111 101 000 | rwxr-x--- | Group can read and run |
| 640 | 110 100 000 | rw-r----- | Group can read |
| 444 | 100 100 100 | r--r--r-- | Read only for all |
| 775 | 111 111 101 | rwxrwxr-x | Group writable directory |
Octal Fractions in Binary
| Octal | Binary |
|---|---|
| 0.4 | 0.1 |
| 0.2 | 0.01 |
| 0.1 | 0.001 |
| 0.04 | 0.0001 |
| 0.5 | 0.101 |
| 0.54 | 0.1011 |
| 1.4 | 1.1 |
| 2.2 | 10.01 |
| 12.3 | 1010.011 |
| 56.3 | 101110.011 |
| 153.7 | 1101011.111 |
| 377.377 | 11111111.011111111 |
| 0.063 | 0.000110011 |
| 7.7 | 111.111 |
Technical Q&A / FAQ Matrix
| Technical Developer Question | Exact Solution & Code Snippet |
|---|---|
| How do I convert octal to binary in JavaScript? | parseInt('755', 8).toString(2) |
| How do I convert octal to binary in Python? | format(int('755', 8), 'b') |
| How do I convert octal to binary in Go? | n, _ := strconv.ParseInt("755", 8, 64); fmt.Println(strconv.FormatInt(n, 2)) |
| How do I convert octal to binary in Java? | Integer.toBinaryString(Integer.parseInt("755", 8)) |
| How do I convert octal to binary in C#? | Convert.ToString(Convert.ToInt32("755", 8), 2) |
| How do I convert octal to binary in PHP? | echo decbin(octdec('755')); |
| How do I convert octal to binary in Rust? | format!("{:b}", i64::from_str_radix("755", 8).unwrap()) |
| How do I convert octal to binary on Linux? | echo 'ibase=8; obase=2; 755' | bc |
| How do I convert octal to binary by hand? | Replace each octal digit with its 3-bit binary group. 7 = 111, 5 = 101, 5 = 101, so 755 is 111101101. |
| Why does each octal digit become exactly 3 bits? | Octal is base 8 and 8 = 2^3, so one octal digit holds 3 bits. No arithmetic is needed, only a lookup of the 8 groups. |
| What is the binary value of octal 377? | 11111111. The groups are 3 = 011, 7 = 111, 7 = 111, and the leading zero is dropped. |
| How do I convert an octal fraction to binary? | Convert each digit after the point to 3 bits. 0.54 in octal is 0.101 100 in binary, which is 0.1011 after dropping trailing zeros. |
| How do chmod digits map to binary? | Each digit is 3 permission bits: read 4, write 2, execute 1. 755 is 111 101 101, which means rwxr-xr-x. |
| Do leading zeros change the binary result? | The value stays the same. The tool drops leading zeros by default, or keeps full 3-bit groups when Leading zeros is set to Keep. |
| Why do I get an invalid character error? | Octal uses only the digits 0 to 7. Remove 8, 9, letters and stray symbols. Spaces and underscores inside a number are ignored. |
| How do I convert binary back to octal? | Group the bits in threes from the right. In JavaScript: parseInt('111101101', 2).toString(8) gives 755. |