Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Decimal to Fraction
Convert a decimal to an exact fraction, reading only the digits you typed and accepting explicit repeat notation.
- Free
- No sign-up
- Runs in your browser
Input
Put a repeating block in brackets: 0.1(6) is exactly 1/6. Without brackets the digits are read literally.
Try an example
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the decimal. The exact fraction appears in lowest terms.
- 2
If the digits repeat without end, mark the repeating block in brackets - 0.(3) for a third - otherwise they are read as written.
Questions about Decimal to Fraction
Why does 0.333 give 333/1000 and not 1/3?
Because 0.333 is 333/1000. It is close to a third but it is not a third, and a converter that returns 1/3 has invented three dots you did not type. If you meant the digits to repeat, write 0.(3) - the tool accepts that and returns exactly 1/3. A note points out the difference whenever the input looks like it might have been meant as a repeating decimal.
How is a repeating decimal converted exactly?
By the standard algebraic method: for 0.1(6), subtracting the non-repeating part leaves a numerator over a denominator of nines and zeros, here 15/90, which reduces to 1/6. It is exact arithmetic, not a search for a nearby simple fraction.
Will it find the "nicest" fraction near my decimal?
No, deliberately. Converting 0.3333333333 to 1/3 requires guessing that the digits continue, and that guess is sometimes wrong - 0.3333333333 might be an exact measurement. A continued-fraction approximation is a different tool with a different contract; this one reports exactly what you entered.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Decimal to Fraction work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Decimal to Fraction keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Add two fractions exactly, showing the common denominator step and reducing the result.
Convert a fraction to its exact decimal expansion, identifying the repeating block rather than truncating it.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.
Divide one fraction by another exactly, by multiplying by the reciprocal.
Convert a mixed number to an improper fraction exactly, handling the negative case correctly.