Calculators

Decimal to Fraction Converter

Convert any decimal number into a simplified fraction instantly, with exact precision, right in your browser.

Decimal to Fraction Converter Tool

Convert a Decimal to a Fraction

Enter a decimal number, such as 0.75, 1.25, or -0.5.

Simplified Fraction
—

Enter a decimal number to convert it.

How Decimal to Fraction Conversion Works

Every decimal can be written as a whole number over a power of 10. The number of digits after the decimal point decides the power: one digit means tenths (÷10), two digits means hundredths (÷100), and so on. Once written that way, the fraction is simplified by dividing both the numerator and denominator by their greatest common divisor (GCD).

0.75 = 75 ÷ 100, GCD(75, 100) = 25, so 75/100 = 3/4

Examples

Common decimal to fraction conversions.
Decimal Fraction
0.51/2
0.753/4
1.255/4 (1 1/4)
22/1
00/1
-0.5-1/2

Frequently Asked Questions

How do you convert a decimal to a fraction?

Write the decimal's digits as a whole number over a power of 10 matching the number of digits after the decimal point (e.g. 0.75 becomes 75/100), then simplify by dividing both parts by their greatest common divisor.

Why is my fraction shown as an improper fraction and a mixed number?

Whenever the decimal is 1 or greater (like 1.25), the resulting fraction's numerator is larger than its denominator, which makes it "improper." This calculator also shows the same value as a mixed number (a whole number plus a proper fraction) since both are correct, commonly used representations.

Can this convert repeating decimals like 0.333... into 1/3?

No -- this tool converts the finite decimal exactly as typed. Typing "0.3333333" converts that specific value, not the mathematical concept of 1/3. Detecting an intended repeating decimal from a truncated typed value is inherently ambiguous, so this calculator doesn't guess.

Does this avoid floating-point rounding errors?

Yes. Conversion works directly from the digits you typed rather than from JavaScript's floating-point representation of that number, so a value like 0.1 converts to the exact fraction 1/10, not an approximation.

What happens with a very long decimal?

Decimals longer than 15 digits after the point are truncated to 15 digits before converting, since numbers beyond that length can no longer be represented exactly. You'll see a note when this happens.

Can I enter negative decimals or whole numbers?

Yes. A whole number like 2 converts to 2/1, and a negative decimal like -0.5 converts to -1/2 (the sign is always shown on the numerator).

Is my data uploaded anywhere?

No. Every conversion happens locally in your browser using JavaScript. Nothing you enter here is sent to Brekzy or stored anywhere.

Find More Useful Tools

Explore Brekzy's growing collection of free calculators, converters, AI tools, and practical resources.