Skip to main content

Decimal to Fraction Converter (and Back)

Turn 0.75 into 3/4, type 0.(3) to get 1/3, or flip a fraction back to its decimal with the repeating block marked

  • Runs locally
  • Category Format Converter
  • Best for Turning pasted content or local files into a handoff-friendly format.
Result
3/4
Fraction: 3/4

What this tool does

A free decimal to fraction converter that works both ways and handles repeating decimals exactly. Enter a terminating decimal like 0.75 and it returns 3/4 fully reduced, with the mixed-number form (2.5 becomes 2 1/2) shown alongside. Mark a repeating block in parentheses, so 0.(3) means 0.333... and converts to 1/3, while 0.1(6) means 0.1666... and converts to 1/6. Going the other direction, type a fraction such as 3/4 to read 0.75, or 1/7 to read 0.(142857) with the repeating period detected by long division rather than a rounded float. Every result is reduced with the greatest common divisor and one click copies it. The whole tool is plain JavaScript in your browser, so nothing you type is uploaded, and a shareable URL reproduces your exact input and direction.

Tool details

Input
Numbers
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
Shareable URL state
Key settings are encoded in the URL so another person can reopen the same setup.
Performance budget
Initial JS <= 9 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Format Converter · Student
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Decimal to Fraction Converter fits into your work

Use it when the main problem is getting content from one practical format into another.

Conversion jobs

  • Turning pasted content or local files into a handoff-friendly format.
  • Previewing a conversion before you use it in a larger workflow.
  • Cleaning small format mismatches without opening a full editor.

Conversion checks

  • Try a small sample first when the source format is messy.
  • Check character encoding, separators, and line endings after conversion.
  • Keep the source until the converted output has been reviewed.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Scientific Calculator Scientific calculator — sin / cos / log / sqrt / power, with full keyboard input + history, deg/rad mode. Open
  2. 2 Unit Converter Convert between length, weight, temperature, area, volume, speed, time — instant, browser-only Open
  3. 3 Fraction Calculator Add, subtract, multiply, divide fractions — auto-reduced, with steps, mixed ⇄ improper ⇄ decimal — browser-only Open

Real-world use cases

  • Finish a math worksheet that wants exact fractions

    Your homework says express 0.875 as a fraction in lowest terms. Type it in and read 7/8, with the gcd step shown so you can write the working, not just the answer. When the next line is a repeating decimal like 0.(45), mark the loop in parentheses and get 5/11. The mixed-number form appears too, so 2.25 gives both 9/4 and 2 1/4 and you copy whichever the question asked for.

  • Convert a measurement to an inch fraction

    A drill chart lists 0.3125 inch and your wrench set is marked in fractions. Drop the decimal in and read 5/16, already reduced, so you grab the right socket on the first try. The same trick turns 0.0625 into 1/16 and 0.75 into 3/4, which is how most imperial fastener and drill sizes are actually labeled at the hardware store.

  • Teach why a repeating decimal is rational

    Showing a class that 0.999... equals 1, or that 0.(142857) is exactly 1/7, is easier with a tool that does the let-x-equal algebra in front of them. Put 0.(6) on the board, get 2/3, then flip 2/3 back to 0.(6) and the loop closes. Students see the two directions agree, which makes the idea that every repeating decimal is a fraction stick.

  • Double-check a fraction-to-decimal answer fast

    You worked 1/7 by hand and got 0.142857 then ran out of patience. Enter 1/7 here and the long division reports the full 0.(142857) period, so you know your by-hand digits were right and where the cycle restarts. It is a quick sanity check before you commit an answer on a test or in a spreadsheet formula.

Common pitfalls

  • Forgetting to reduce. 0.5 is 5/10 but the answer is 1/2; always divide top and bottom by the gcd. A teacher marking 50/100 instead of 1/2 will count it wrong even though the value is the same.

  • Mishandling the repeating block. 0.3 and 0.(3) are completely different. 0.3 is 3/10, while 0.(3) is 1/3. Put the repeating digits in parentheses, and only the digits that actually recur, so 0.1(6) is 1/6 but 0.16 is 4/25.

  • Counting decimal places wrong. The denominator is a power of ten equal to the number of digits after the point, so 0.075 is 75/1000 not 75/100. One miscounted zero turns 3/40 into 3/4, a tenfold error.

Privacy

Everything here runs as plain JavaScript inside your browser tab: the power-of-ten setup, the repeating-decimal algebra, the gcd reduction and the long division all happen locally. No number you enter is sent to a server and nothing is logged. The only thing that leaves your machine is the shareable URL, which encodes your input and direction in the query string, so a link you paste into chat will appear in the recipient server's access log. For anything you would rather not share, copy the result text instead of sending the link.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-05-29