Base 3, also called ternary, is a numeral system that uses only three digits — 0, 1, and 2 — and each position represents a successive power of 3 (1, 3, 9, 27, 81, 243, …). Converting a number to base 3 by hand is a matter of repeatedly dividing the decimal value by 3 and reading the remainders in reverse order, so the decimal number 13 becomes 111 in ternary because 13 = 1×9 + 1×3 + 1×1. When the input is large, when you want to double-check a homework answer, or when you need the same value written in several bases at once, an online number base converter handles the arithmetic the moment you finish typing. The Number Base Converter accepts any whole number, in any base from 2 through 36, including ternary (base 3), and rewrites it in the base you choose while validating that every digit you typed is actually legal in the source base. Below is the step-by-step way to convert any number to base 3 using that tool, followed by the manual division method so the same logic works on paper.

What Base 3 Means and How Its Digits Work
A positional numeral system is just a rule that tells you how much each "slot" is worth. In decimal (base 10) the rightmost slot is worth 1, the next is worth 10, then 100, then 1,000, and so on, because each step multiplies by 10. In base 3 every step multiplies by 3 instead, so the slots from right to left are worth 1, 3, 9, 27, 81, 243, 729, and 2,187. Only three symbol values are ever needed: 0, 1, and 2, because once a slot reaches 3 the system "carries" the overflow into the next higher position, exactly the way decimal rolls 9 over into 10.
Reading a base-3 number is therefore no different from reading a decimal number — you multiply each digit by its place value and add the results. The base-3 number 1022 breaks down as:
- 1 × 27 = 27
- 0 × 9 = 0
- 2 × 3 = 6
- 2 × 1 = 2
Total: 27 + 0 + 6 + 2 = 35 in decimal. That is why the same string of digits can mean wildly different things in different bases: the symbol "1022" means thirty-five in ternary, one thousand twenty-two in decimal, and 74 in base 4, just by changing which positional weights you assign. Because every digit position in base 3 lines up with a power of 3 rather than a power of 10, the system is more compact than binary in some sense — a base-3 digit carries roughly 1.585 bits of information, which is why ternary has been studied for decades as an alternative foundation for computer hardware.
How to Convert to Base 3 Using the Number Base Converter
For most everyday tasks — homework, programming, electronics work, debugging — the fastest path is to skip the long division and let a tool do it. The Number Base Converter reads your input in any base you choose and writes it back in any other base you choose, in your browser, with nothing uploaded. To convert any number to base 3:
- Type the whole number you want to convert into the value field. Letters are case-insensitive, and a leading minus sign is allowed if the value is negative.
- Pick the "from base" that matches how the number is currently written. For a regular decimal integer, choose Decimal (base 10). If you already have a base-3 value, choose Ternary (base 3).
- Set the "to base" to Ternary (base 3).
- Read the converted result immediately. The same value is shown at once in binary, octal, decimal, and hexadecimal, so you do not have to run the conversion twice if a later step needs a different base.
The converter uses arbitrary-precision arithmetic (BigInt), so very large whole numbers convert exactly without overflow or rounding. If you ever type a digit that is not allowed in the chosen source base — for instance, a "3" or a "4" inside a ternary input — the converter flags the exact bad character rather than silently returning a wrong answer. That strict validation is what makes it safe to trust the output even when the input is long or unfamiliar.
How to Convert to Base 3 by Hand
The classic paper method for converting a decimal number to base 3 is repeated division by 3. Each step divides the current value by 3, records the remainder as the next base-3 digit, and keeps dividing the quotient until it reaches zero. The remainders are then read in reverse order to form the base-3 result.
Worked example: convert 13 (decimal) to base 3.
- 13 ÷ 3 = 4, remainder 1 → rightmost digit is 1
- 4 ÷ 3 = 1, remainder 1 → next digit is 1
- 1 ÷ 3 = 0, remainder 1 → leading digit is 1
- Reading the remainders bottom to top gives 111.
Quick verification by positional expansion: 1×9 + 1×3 + 1×1 = 9 + 3 + 1 = 13. The result 13₁₀ = 111₃ checks out. The same three-step procedure works on any positive integer; negative integers simply carry a leading minus sign on the final answer.
To go the other direction — convert from base 3 back to decimal — multiply each digit by its place value and add, which is the reverse of the expansion shown in the previous section. The Number Base Converter handles both directions in the same interface, so once you understand the math on paper, the tool simply removes the arithmetic step.
Common Base 3 Values to Memorize
A handful of small decimal values come up so frequently that recognizing them in ternary saves a lot of time. The table below maps the first ten decimal integers to their base-3 spellings, which makes a quick reference for sanity-checking any conversion:
| Decimal (base 10) | Ternary (base 3) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 10 |
| 4 | 11 |
| 5 | 12 |
| 6 | 20 |
| 7 | 21 |
| 8 | 22 |
| 9 | 100 |
Notice the pattern: every time the decimal value crosses a power of 3 (3, 9, 27, 81, …), the ternary representation gains a new leftmost digit, exactly the way decimal grows by one digit at 10, 100, 1,000, and so on. Memorizing the first few rows makes it much easier to tell at a glance whether a conversion result looks reasonable, and the same powers-of-three pattern extends to whatever larger number you happen to be working with.
Mistakes to Watch For in Base 3 Conversions
Most errors in base-3 conversions come from one of four recurring slips. Knowing what to look for is the best way to catch them before they propagate into a wrong answer.
- Using digits that don't exist. Base 3 has exactly three digits: 0, 1, and 2. Any "3" or higher in the input is not a legal ternary digit. The Number Base Converter flags the offending character instead of returning a silently wrong result, which many online converters silently do.
- Reading remainders in the wrong order. When converting by repeated division, the first remainder you record is the rightmost digit. Beginners often write the remainders top-to-bottom and end up with a reversed string, which can look plausible but evaluates to a completely different number.
- Mixing up place values. The rightmost slot in a base-3 number is worth 1, not 3. If you start expanding from the left with the wrong anchor, every digit's contribution is off by some power of 3.
- Confusing the source base with the target. Typing "13" with the "from base" set to Ternary is parsed as 1×3 + 3, and the "3" is illegal anyway. If the answer looks nothing like what you expect, swap the from and to bases and try again — almost every "this number is nonsense" report is really a base-selection mistake.
Cross-checking any conversion by expanding it back into decimal — multiply each digit by its place value and sum — takes only a few seconds and catches nearly all of the errors above. For numbers that are too long to check by hand, re-running them through the Number Base Converter in the opposite direction is the fastest verification.
Where Base 3 Shows Up in Real Work
Ternary is less common in everyday computing than binary or hexadecimal, but it is not just a math curiosity. Balanced ternary — a related system using digits −1, 0, and +1 — has a long history in early Soviet-era computers and in modern theoretical computer science because the carry chain in balanced ternary is simpler than in binary. Three-valued logic uses a "true / false / unknown" structure that maps naturally onto three symbols. A few compression algorithms and signal-processing schemes also rely on ternary arithmetic, and a wide range of math puzzles assume base 3 by default.
Whether your input is a small integer you want to expand by hand, a homework exercise that needs a quick check, or a 50-digit value you would rather not try to divide on paper, the Number Base Converter handles the conversion instantly in your browser and shows the same number in binary, octal, decimal, and hexadecimal at the same time, so you never have to run the calculation twice.