Convert a terminating decimal to an exact simplified fraction locally, without rounding.
How to use
Decimal number
Convert
Copy result
Convert a terminating decimal representation to an exact fraction
Enter ASCII digits 0–9 with an optional leading + or -. A dot or comma is a decimal separator: 0.125 and 0,125 both give 1/8. A comma never groups thousands; for example, 1,000 is interpreted as 1. .5 and ,5 are accepted, as are integers. The integer part and fractional part each allow at most 12 digits. Raw input must not exceed 64 characters before leading/trailing whitespace is trimmed. Scientific/exponential notation, thousands separators, a trailing dot/comma, fraction notation and repeating decimals are unsupported. BigInt arithmetic converts the terminating decimal exactly and reduces it by the greatest common divisor, without approximation or rounding. 0.333 is exactly 333/1000, not the infinitely repeating 0.333… or 1/3. The denominator is positive; -1.25 gives -5/4. Integer results omit the fraction bar, and zero is shown as 0. Conversion preserves the entered text; copy the result as needed. Clear restores the default input 0.125 and removes the result and copyable output. The Fraction calculator requires integer numerators/denominators; this tool directly converts decimal input to a fraction. Processing is local in your browser; input and results are not sent to a server.
Convert a terminating decimal to an exact simplified fraction locally, without rounding.
ASCII digits; optional +/−. Up to 12 integer and 12 decimal digits; 64 raw input characters. Use a dot or comma as the decimal separator, not for thousands. No exponents or repeating decimals.
Open it, do the thing, move on. No downloads, sign-up forms or waiting.
02
Privacy first
Your files and text stay on your device. We don’t store your data.
03
Simple for everyone
No confusing menus. What you need is right where it should be.
PRIVATE BY DESIGN
Your files get the job done without passing through us.
Your images, text, QR contents and calculations are processed in your browser. Read our privacy policy for details about hosting, local storage and the current advertising status.
PRIVACY FIRST
✳
Make your next little task a little easier.
Try your first tool now. Free, no account, no fuss.
Your images, text, QR contents and calculations are processed in your browser. Read our privacy policy for details about hosting, local storage and the current advertising status.