Decimal ↔ Fraction Converter

Two-way converter: enter a decimal to get the reduced fraction, or enter a numerator and denominator to get the decimal value plus simplified form. Results update instantly as you type. Runs in your browser.

Browser-local No signup required Utility

Convert a decimal-style JavaScript number to a simplified fraction, or divide a numerator by a denominator to see its decimal value and a simplified fraction form.

How to convert decimals and fractions

  1. For decimal to fraction, enter a decimal value such as 0.75.
  2. Read the simplified numerator and denominator.
  3. For fraction to decimal, enter numerator and denominator values.
  4. Read the decimal result and the simplified fraction when it differs from the input.

How simplification works

Decimal-to-fraction conversion uses the decimal text produced by JavaScript Number.toString(), builds a power-of-ten denominator, rounds the scaled numerator, and reduces it with the greatest common divisor.

Fraction-to-decimal simply divides numerator by denominator. A zero denominator is rejected, and floating-point inputs can produce non-intuitive simplification because this is not an exact rational-arithmetic engine.

Privacy and limitations

All calculations run in the browser and this application does not send the entered numbers to an external server. Because JavaScript floating-point numbers are used, repeating decimals, very large values, and values affected by binary floating-point representation may not map to the fraction a symbolic math system would choose.

Decimal and Fraction Converter FAQ

Does 0.75 become 3/4?

Yes, ordinary terminating decimals such as 0.75 are reduced with a GCD to their simpler fraction form.

Can it convert repeating decimals exactly?

No. It only sees the finite JavaScript number value you enter, not an abstract repeating-decimal notation.

Can the denominator be zero?

No. Fraction-to-decimal conversion rejects a zero denominator.

Does it simplify fractions?

Yes. It divides numerator and denominator by their greatest common divisor.

Is arbitrary-precision rational arithmetic used?

No. The tool uses standard JavaScript Number values.