Boneyard Tools

Decimal to Fraction Converter

Turn a terminating decimal into its exact, lowest-terms fraction. Type a value like 0.75 and the tool builds a fraction over a power of ten, reduces it by the greatest common divisor, and shows both the simplified fraction and the mixed number. Negatives and whole numbers are handled too.

How to convert a decimal to a fraction

  1. Type your decimal into the Decimal value field, for example 0.75 or 2.5.
  2. Use the plus and minus steppers to nudge the value by 0.05, or type any number between -1000 and 1000.
  3. Read the large Fraction result at the top of the card.
  4. Check the Simplified fraction and the Mixed number (or Whole number) shown below it.
  5. Press Copy to place the fraction on your clipboard.

Examples

A common terminating decimal

0.75
Fraction 3/4, mixed number 3/4

A value greater than one

2.5
Fraction 5/2, mixed number 2 1/2

A negative decimal

-0.6
Fraction -3/5, mixed number -3/5

Frequently asked questions

How does the decimal to fraction conversion work?

The tool counts the digits after the decimal point to set the denominator as a power of ten, then makes the numerator the value times that power. For 0.75 that is 75/100, which then reduces to 3/4.

How is the fraction simplified?

It divides the numerator and denominator by their greatest common divisor. 75 and 100 share a factor of 25, so 75/100 becomes the lowest-terms fraction 3/4. Every result is always fully reduced.

Can it show a mixed number?

Yes. When the value is larger than one, the card shows the mixed form beside the improper fraction. 2.5 becomes the improper fraction 5/2 and the mixed number 2 1/2. Values below one just repeat the plain fraction.

What about repeating decimals like 0.3333?

Repeating decimals are approximated from only the digits you type, since the tool cannot know the pattern continues. 0.3333 becomes 3333/10000, which is close to but not exactly 1/3. Enter more threes for a closer match.

Does it handle negative numbers and whole numbers?

Yes. Negatives keep their sign on the numerator, so -0.6 becomes -3/5. Whole numbers like 3 are written over a denominator of one as 3/1 and labelled as a Whole number.

How many decimal places can it read?

Up to ten places are honoured exactly. Beyond ten, the extra digits are rounded before the fraction is built, which keeps the denominator finite and the math reliable.

What range of values does the field accept?

Any number from -1000 to 1000. The stepper buttons move in increments of 0.05, but you can type any value in that range directly, including several decimal places.

Why is 0.1 not a tidy fraction in some other tools?

Because computers store 0.1 in binary, it is not exact internally. This tool sidesteps that by reading the digits you typed rather than the raw binary value, so 0.1 returns a clean 1/10 instead of a huge denominator.

Is my input private?

Yes. The conversion runs entirely in your browser with no server call and no sign-in, so nothing you type is uploaded or stored.

Learn more

Related tools