Decimal to
fraction converter

Turn the number you type into an exact,
simplified fraction.

Exact-fraction workspace

Repeating mode uses an explicit cycle,
such as 0.(3). Finite digits are never rounded.

58

Exact reduced fraction

  1. 3 decimal places: denominator 1000
  2. 625 / 1000
  3. Greatest common divisor: 125
  4. (625 ÷ 125) / (1000 ÷ 125) = 5 / 8

Finite 0.333 = 333/1000. Explicit repeating 0.(3) = 1/3.

How it works

Count the places

Find how many digits are
after the decimal point.

Write the place-value
fraction

Put the digits over the
corresponding power of 10.

Reduce both terms

Divide the numerator and
denominator by their
greatest common divisor.

Worked example

0.625 =6251000=58

Questions, Answered.

Why is finite 0.333 not one third?

The written finite decimal is exactly 333/1000. One third repeats forever; choose Repeating decimal and enter 0.(3) to state that cycle explicitly.

Does the converter round my number?

No. It reads the typed decimal as an exact digit string and reduces it with integer arithmetic. Finite inputs support up to 200 digits total and 100 decimal places.

Can I enter a negative decimal?

Yes. For example, -2.75 becomes -11/4. The fraction model identifies negative values and whole units rather than presenting them as a positive proper fraction.

What input formats are supported?

Finite mode accepts plain signed decimals such as .5, 5., -0.625 and 12.50. Repeating mode uses a cycle in parentheses, such as 0.(3) or 0.1(6). Commas, exponent notation, ellipses and fraction syntax are rejected.

Fraction Match
Challenge

A round worth passing along.

Match four decimals, place them on a line, then let a
friend try the same round.

Send a fraction round