Number Converters · Browser · Free

Decimal to Fraction Converter

Enter a decimal and this page writes it as a fraction in lowest terms. The arithmetic is exact, so the fraction is the same value you typed.

What this tool does

There is one number field. Put your decimal in it and press Convert: the decimal is written over a power of ten and reduced with the greatest common divisor.

The form computes only when Convert is pressed. If the value is above 1 and not a whole number, a mixed number is shown as well as the fraction.

Reading the result

The result appears in a card below the button. Copy writes the result and its unit to the clipboard. Clear resets the form. Everything runs in the browser and nothing is uploaded.

The table underneath lists ready-made pairs you can compare against, such as 0.125 becoming 1/8 and 2.25 becoming 9/4.

Decimal to fraction formula

A decimal is written as a fraction over a power of ten, then the numerator and denominator are reduced by their greatest common divisor.

Following that rule, the table gives 0.1 as 1/10, 0.2 as 1/5, and 0.75 as 3/4.

Decimal to fraction conversion table
DecimalFraction
0.51/2
0.251/4
0.753/4
0.21/5
0.1251/8
0.11/10
1.53/2
2.259/4