UTILS.
100% in-browser
½

Decimal to Fraction Calculator

Convert a decimal (including repeating decimals) into an exact fraction in lowest terms and a mixed number, or a fraction back to a decimal.

About this tool

Turn a decimal into an exact, fully-reduced fraction and its mixed-number form, or switch modes to convert a fraction back into a decimal — all in your browser. Type 0.375 and you get 3/8; type a repeating value and you get its true fraction, for example 0.333… → 1/3.

Terminating decimals are exact: the digits become the numerator over a power of ten (0.375 = 375/1000), then the fraction is divided by the greatest common divisor to reach lowest terms (3/8). Repeating decimals are handled algebraically rather than by guessing — end the number with … (three dots) to repeat the final digit, so 0.1666… becomes 1/6, or state the repeating block explicitly in parentheses like 0.1(6) or 0.(3) for multi-digit repetends. Whole-number arithmetic uses big integers, so even long decimals reduce without rounding error.

In Fraction → Decimal mode, enter a simple fraction such as 3/8 or a mixed number like 1 1/2 to see the decimal value and its percentage. This complements the reverse Fraction to Decimal converter and is handy for schoolwork, tape-measure and drill-bit sizes, and any time you need an exact ratio instead of a rounded number.

Frequently asked questions

How do I convert 0.375 to a fraction?
Just type 0.375. It equals 375/1000, and dividing both by their greatest common divisor of 125 gives 3/8, which the tool shows as the fraction and mixed number.
How do I enter a repeating decimal like 0.333…?
End it with three dots to repeat the last digit: 0.333… gives 1/3 and 0.1666… gives 1/6. For a multi-digit repetend, wrap it in parentheses, e.g. 0.(3) or 0.1(6).
Can it turn a fraction back into a decimal?
Yes. Switch to Fraction → Decimal mode and enter a fraction such as 3/8, or a mixed number like 1 1/2, to get the decimal value and its percentage.
Is the fraction always in lowest terms?
Yes. Every result is reduced by dividing the numerator and denominator by their greatest common divisor, so you always get the simplest exact fraction.

More tools