All Tools
Categories
Number Tools 133 XML Tools 64 Email Marketing Tools 55 Import-Export Tools 50 JSON Tools 45 Text Tools 13 Shipping Freight Tools 5 Calculator 4
About Contact Privacy

Convert a Decimal to a Fraction

Convert a decimal to a fraction - enter any decimal including repeating forms like 0.333... or 0.(142857), and get the exact reduced fraction p/q. Show the steps, copy or download. Runs in your browser. Free.

Parameters
plain, dotted or parenthesised repeats, up to 1000
Result

        

About Convert a Decimal to a Fraction

Every decimal - and every decimal-like notation - hides an exact fraction. 0.75 is 3/4; 0.333... is exactly 1/3; 0.(142857) is exactly 1/7. Terminating decimals become fractions over powers of ten; repeating ones need a small algebraic trick. Either way the fraction is unique and the conversion is exact.

Convert a Decimal to a Fraction takes any decimal, including repeating forms, and returns the exact reduced fraction p/q with the working shown. Batch up to 1000 decimals per run, all exact, all reduced.

Features

  • Exact fractions: Every result reduced via the gcd.
  • Repeating support: 0.(3), 0.1(6) and 0.333... all parsed.
  • Steps shown: The method visible on every row.
  • Any size: BigInt keeps huge decimals exact.
  • Batch mode: Up to 1000 decimals per run.
  • Copy or download: Export the fractions.

How to Use

  1. Enter a decimal - plain, with dots, or parenthesised repeat.
  2. Optionally batch - one per line, up to 1000.
  3. Generate - the exact reduced fraction appears.
  4. Read the steps - how the fraction was built.
  5. Copy or download - the results.

Examples

1. 0.75: 75/100 reduced to 3/4.

2. 0.333...: the repeating trick gives exactly 1/3.

3. 0.(142857): 142857/999999 reduces to exactly 1/7.

4. 2.5: 25/10 reduced to 5/2 - the mixed form preserved as an improper fraction.

5. 0.1(6): point-1 then forever-6 gives exactly 1/6.

Benefits

  • Always reduced: gcd at the core, lowest terms every time.
  • Repeats included: The hard cases - 0.(142857) - convert exactly.
  • Methods visible: Learn the algebra as you convert.
  • Batch speed: Hundreds of decimals at once.
  • Copy or download: Results export in one click.
  • Private and free: All arithmetic stays in the browser; nothing is uploaded or logged.

Frequently Asked Questions

How do I convert a decimal to a fraction?
Write the decimal over the right power of 10 and reduce: 0.75 = 75/100 = 3/4. For repeating decimals like 0.333..., an algebraic trick reveals the exact fraction 1/3.
Are repeating decimals handled?
Yes. Enter 0.333..., 0.(142857) or 0.1(6) and the tool returns the exact fraction - 1/3, 1/7 and 1/6 respectively, with the method shown.
What notation can I use for repeats?
Any of these: 0.333..., 0.33333, 0.(3), or 0.3(3) if the repeat starts late. The dot-dot-dot and parenthesised forms both mean the digits repeat forever.
Is the result reduced?
Yes. Every fraction is returned in lowest terms via the greatest common divisor - 0.5 becomes 1/2, never 5/10.
Can I batch convert?
Yes. Paste up to 1000 decimals, one per line, and each converts with its own exact fraction.
What if the decimal is huge?
BigInt arithmetic keeps every digit exact, so a 50-digit decimal converts without rounding.
Can I copy or download?
Yes. Copy takes the result list; download saves it as a text file.
Is anything stored or uploaded?
No. Everything runs in your browser. Nothing is sent, saved or logged.