🌐 EN

Fraction Decimal Converter

Choose a direction to convert a fraction into a decimal or a finite decimal into a reduced fraction.

Result
—

Inputs and checks

  • Choose fraction-to-decimal or decimal-to-fraction. Only the inputs for that direction appear; the starting examples are 1/4 and 0.25.
  • For a fraction, enter numerator and denominator in separate number fields; decimal values are accepted in these fields. The denominator must not be zero.
  • For decimal-to-fraction, enter a finite decimal number, including a sign if needed. This is not an input for repeating-decimal dots or an ellipsis.
  • The result updates as you change the visible inputs, or press Convert. Fraction-to-decimal output is not restricted to a fixed number of decimal places; no separate unit or stated size limit is provided.

Reading the result

  • Fraction-to-decimal divides numerator by denominator. If the denominator is zero or blank, a denominator error appears; a blank numerator is treated as zero.
  • Decimal-to-fraction makes a fraction from the entered finite digits and reduces it by the greatest common divisor, keeping a negative sign where needed.
  • A missing or unreadable decimal gives a dash. This tool does not detect repeating cycles, produce mixed numbers, or do arithmetic with fractions.
  • JavaScript Number uses limited-precision floating-point arithmetic, so some results may be approximate and very large values may overflow.

Examples

Turn three eighths into a decimal

Input
Mode: fraction to decimal; numerator: 3; denominator: 8
Result
3 / 8 = 0.375
How to check it
Dividing 3 by 8 gives exactly 0.375.

Turn 0.625 into a fraction

Input
Mode: decimal to fraction; decimal: 0.625
Result
0.625 = 5 / 8
How to check it
0.625 = 625/1000; dividing top and bottom by 125 gives 5/8.

Frequently asked questions

Why does entering zero as the denominator show an error?
A denominator of zero would require division by zero, which is not allowed.
Can it convert the repeating decimal 0.333... to an exact fraction?
No. Enter a finite decimal; the tool does not read ellipses or detect repeating cycles.
Will I see mixed numbers such as 1 1/2?
No. The result uses an ordinary numerator-over-denominator fraction.