Convert a Decimal to a Fraction
Convert a decimal number to a fraction. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Convert a decimal number to a fraction.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert a Decimal to a Fraction is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Convert a Decimal to a Fraction
- 1. Paste your decimal numbers. Enter one decimal per line, such as 0.75. Repeating decimals work as 0.(3), 0.333... or with an overline, and percentages like 37.5% too.
- 2. Read the reduced fraction. Exact gives each decimal as a lowest-terms fraction with its mixed number and percent, so 2.75 shows 11/4 and 2 3/4. Choose Nearest fraction and a step, such as 16 for sixteenths of an inch, to get 7/16 for 0.43 with how far off it is.
- 3. Copy the fractions. Copy the resulting fractions from the output and use them in your math homework, recipe scaling or measurement conversion.
When to use Convert a Decimal to a Fraction
Convert a Decimal to a Fraction takes a decimal value and returns it as a fraction reduced to lowest terms using the greatest common divisor. It is for anyone who needs an exact fractional form instead of a rounded decimal.
- Checking a math homework simplification. A student converting decimals to fractions for a homework assignment wants to verify their reduced fraction matches the correct lowest-terms answer.
- Converting a measurement to a fraction. A cooking recipe or woodworking plan gives a measurement as a decimal, like 0.375 inches, and you want the equivalent fraction that matches a ruler or measuring cup marking.
- Simplifying a probability expressed as a decimal. A statistics problem gives a probability as a decimal and asks for it expressed as a reduced fraction to match the expected answer format.
- Verifying a fraction-reduction function. A developer testing a custom decimal-to-fraction conversion function wants a trusted reference output to compare their GCD-based reduction logic against.
Examples
Reduce to lowest terms
Input
0.5 0.75
Output
1/2 3/4
Improper fractions and negatives
Input
2.5 -0.25
Output
5/2 -1/4
A repeating decimal
Input
0.(3)
Output
1/3
Nearest 1/16 inch
Input
0.43
Output
7/16
About the Convert a Decimal to a Fraction tool
Convert a Decimal to a Fraction runs as plain JavaScript in your browser tab, with no server behind it. Convert a decimal number to a fraction. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's Number Tools section, 194 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 2 settings, including Mode and Nearest 1/N, N =, and the result refreshes the moment you change one. 4 worked examples further down the page show exactly what the tool produces for real inputs.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Convert a Decimal to a Fraction free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All Number Tools →Convert a Fraction to a Decimal
Convert a fraction to a decimal number.
Add Fractions
Quickly sum up all the fractions in the given list and find their total.
Create Unicode Fractions
Quickly convert simple fractions to pretty Unicode fractions.
Round a Number
Quickly round one or more numbers to the given accuracy.