Zoho Sheet OCT2BIN Function: Octal to Binary with Examples
Convert octal values to binary in Zoho Sheet with exact datasets, place-value checks, documented limits and practical examples.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
OCT2BIN converts a octal representation into binary. For the positive integer 42, the source numeral is 52 and the converted result is 101010. The base changes; the represented quantity does not. Use a width argument when a receiving report needs leading zeroes.
Syntax and availability
OCT2BIN(octal_number; [num_of_digits])
Zoho’s official OCT2BIN entry was checked on October 15, 2026. It describes the rolling web service. The first supported release and last functioning version are unknown; current documentation is separate from those historical endpoints. Mobile/offline parity is unverified. Results below are independent integer calculations, not native Zoho execution.
The required source contains at most ten characters, using only 0 through 7. Numeric literals in the examples are digit sequences in the source base, not ordinary decimal quantities. The checked entry does not fully specify signed interpretation of maximum-width values; these examples use small positive values and make no unsigned or two’s-complement promise at that boundary.
The second argument chooses the output width. When the representation is shorter, Zoho pads its left side with zeroes; an insufficient width is an error, not permission to cut off significant digits. Use positive integer widths here. Fractional widths, blank inputs and Boolean coercion are not verified.
Square brackets mark an optional argument and are not typed into a formula. Omitting width gives the unpadded representation in the ordinary positive examples. Follow your workbook’s locale separator; these formulas use semicolons.
Visible official control
Zoho explicitly gives =OCT2BIN(77;12) with result 000000111111. That is direct evidence for a twelve-character output in this product; do not import another application’s ten-place restriction. Other vendor examples refer to cells whose inputs are not visible in the extracted help; the complete worksheet below supplies its own inputs rather than inventing those hidden cells.
Complete reproducible worksheet
Create Conversions with Source in A1, Decimal_check in B1, Converted in C1, and Padded in D1. Enter the following values in A2:B7. Enter the source numerals exactly as shown, without grouping commas or base prefixes. Column B is an independent explanatory value, not an argument to the conversion formula.
| Row | A: source | B: decimal check | C: expected | D: expected width 8 |
|---|---|---|---|---|
| 2 | 1 | 1 | 1 | 00000001 |
| 3 | 7 | 7 | 111 | 00000111 |
| 4 | 17 | 15 | 1111 | 00001111 |
| 5 | 52 | 42 | 101010 | 00101010 |
| 6 | 77 | 63 | 111111 | 00111111 |
| 7 | 377 | 255 | 11111111 | 11111111 |
Enter C2 =OCT2BIN(A2) and fill through C7.
Fill D2 =OCT2BIN(A2;8) through D7. The zeroes in D belong to the representation, not to a larger numeric value.
In a copy change A5 from 52 to 53 and update its explanatory B5 to 43. C5 becomes 101011 and D5 becomes 00101011. Other records remain unchanged. This gives a one-unit sensitivity check with a fully specified input.
Advanced: expand a three-digit octal word
Put 651 in G2 and =OCT2BIN(G2;9) in H2. The expected bit sequence is 110101001. The octal digits expand to 110,101,001, respectively. Its decimal value is 425, from 6×64+5×8+1.
Use 650 in G3 with the same nine-character width. H3 becomes 110101000, representing 424. The final bit is the only changed position. This makes a useful control when a specification describes a collection of three-bit fields, provided the worksheet follows that specification’s field order.
For a twelve-character display of the original 651, =OCT2BIN(G2;12) has expected result 000110101001. Those extra left zeroes do not create a new nonzero field. They may still matter to a text export, so preserve the chosen display width separately from the numeric interpretation. A function with a ten-character input limit should not be assumed to accept that twelve-character output; keep conversions for display separate from reverse-conversion tests.
Errors and troubleshooting
The documented #NUM! cases include an output that needs more places than the requested width, and width zero or negative. For example, =OCT2BIN(377;1) cannot hold 11111111 in one position. Increasing the width preserves the whole representation; shortening the source value would change the data.
An invalid source digit also produces the documented #NUM! error; OCT2BIN(8) is an invalid-digit control. Do not remove an error merely to make a report appear complete: retain the raw value and investigate the format or width rule.
The shared help glossary mentions name, type and reference errors without defining a complete coercion matrix for this function. Check the source base, legal characters, cell type and literal quotation before investigating more complex formulas. Do not add 0x, 0b or other programming-language prefixes unless a product reference explicitly permits them.
Keep conversion and arithmetic separate. A nondecimal display can look like a decimal number, yet ordinary subtraction on that display need not measure the intended change. Preserve raw identifiers, document the source’s sign and width convention, and verify exported leading zeroes in the receiving system. Matching function names across spreadsheet products do not establish identical limits or behavior.