Decimal to Fraction Converter (and Back)

Switch between decimals and fractions. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified
For example 0.75, 3/8 or 1 3/8.

How to use it

  1. Type a decimal, a fraction or a mixed number.
  2. Read the exact fraction, the mixed number and the percent.
  3. For a decimal that looks like a repeating one (such as 0.3333) check the closest simple fraction.

How it works

A decimal with k decimal places is exactly its digits ÷ 10ᵏ, reduced by the greatest common divisor. The closest simple fraction with a denominator up to your limit comes from the continued-fraction expansion, which gives the best rational approximation for that limit, for example 0.3333 ≈ 1/3 and 3.14159 ≈ 355/113.

Examples

  • 0.75 = 3/4. 1.125 = 9/8 = 1 1/8. 3/8 = 0.375.

Limitations

  • A typed decimal is treated as exact, so 0.3333 is 3333/10000, not 1/3; the closest-fraction line shows when it is probably a rounded repeating decimal. At most 30 decimal places.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.