ForHosting KIT · Unit converters

Decimal to fraction converter

0.75 is 3/4 and 0.(3) is exactly 1/3: enter a finite or repeating decimal and get the fraction already reduced to lowest terms, ready for homework or a recipe. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Value
0.75
You get
Numerator
3
Denominator
4
Fraction
3/4
Sign
1

Turning a decimal into a fraction is a classic algebra skill that still shows up every day in homework, recipes, spreadsheets, and measurement pipelines. A terminating value such as zero point seven five is three quarters once you cancel the common factor of twenty-five, while a repeating expansion such as zero point three repeating is exactly one third—not an endless guess. This decimal to fraction converter accepts a finite decimal, an integer, a parentheses repeating form such as zero point open parenthesis three close parenthesis, or a clear ellipsis form, then returns a reduced numerator and denominator with a short display string you can pin in tests.

Classroom uses and practical limits

Call the free in-browser decimal to fraction converter for homework checks, lecture demos, and quick mental-math verification without installing Maxima, SymPy, or a local CAS. Prefer string inputs for repeating and long finite decimals so binary floating-point never rewrites the digits a student typed. Keep digit counts within the published cap and prefer classroom-scale inputs for grading oracles.

Authors shipping SDKs can map numerator and denominator directly into UI tables or fraction widgets—the same shape students write on paper when they convert decimals by hand.

Homework and exam verification

Students convert terminating and repeating decimals to lowest-terms fractions, compare numerator and denominator separately, and get a clear error when non-numeric text is submitted by mistake.

How do I convert a decimal to a fraction with this tool?

The response includes numerator, denominator, and a fraction string such as 3/4.

How do I enter a repeating decimal?

Use parentheses form such as 0.(3) for 0.333… or 0.1(6) for 0.1666…. Clear ellipsis forms like 0.333... are also accepted when the period is obvious.

What happens if the input is not a number?

Non-numeric strings and incomplete fragments are rejected and not charged.

Is the decimal to fraction converter free?

The browser tool runs free on your device.

Are fractions always fully reduced?

Yes. Numerator and denominator are reduced with an exact greatest-common-divisor step so the result is always in lowest terms with a positive denominator.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/fmt/decimal-fraction

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/fmt/decimal-fraction \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"0.75"}'
{
  "value": "0.75"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "fmt.decimal_fraction",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

What inputs are accepted and how repeating decimals are written

Finite decimals such as 0.75, 2.5, and -0.125, as well as whole numbers such as 7, are converted with exact place-value arithmetic: seventy-five hundredths becomes seventy-five over one hundred and then reduces by the greatest common divisor to three over four. For repeating decimals, use the unambiguous parentheses notation taught in many textbooks: write 0.(3) for zero point three repeating, 0.1(6) for zero point one six repeating, or 1.(3) when the integer part is non-zero. You may also write a clear ellipsis form such as 0.333... when the repeating run is obvious; the engine detects a trailing single digit repeated at least three times or a multi-digit period that appears at least twice at the end of the fractional part. Send the required field value as a JSON number or, preferably, a numeric string so the digits you type are the digits that are converted. Aliases n, number, decimal, and input are accepted for the same field so forms and SDK snippets stay readable. Non-numeric text, empty strings, and incomplete fragments fail with invalid_input and are not charged. Digit length is capped for Worker isolate safety while still covering every classroom example and most engineering magnitudes you would type by hand. Identical inputs always produce identical JSON because the path is pure arithmetic with no network, no random seed, and no wall clock.

Reading numerator, denominator, fraction string, and method labels

The simplified flag is always true because reduction runs on every path; sign is -1, 0, or 1 so UIs can style negatives without reparsing the fraction string. A decimal field reconstructs a short preview of the reduced rational, using parentheses when long division finds a cycle, which is handy for confirming that 1/6 appears as 0.1(6). Use numerator and denominator when grading software must check each part; use fraction when a report needs a single token; use method when logs should record which algorithm path produced the answer. On success the response echoes the value you sent, a signed integer numerator, a positive integer denominator already reduced to lowest terms, and a fraction string such as 3/4 or -7/2 for quick display. When the input used parentheses or a detected ellipsis period, is_repeating is true and method is repeating_parentheses or repeating_ellipsis; finite digit strings use exact_decimal; bare JSON floats that cannot be recovered as a short exact decimal may use continued_fraction approximation so values such as one tenth still land on the familiar one over ten when precision allows. Large numerators or denominators that exceed safe JSON integers are emitted as decimal strings so exactness is preserved without floating-point drift. Missing value, pure letters, and malformed fragments all fail with invalid_input mentioning that the input was non-numeric or incomplete.

API usage, pricing, classroom workflows, and practical limits

Send a JSON body with the required value field set to a decimal string or number, then read numerator, denominator, and fraction from the result. Use the prepaid API when a tutoring platform, coding-assessment sandbox, measurement pipeline, or spreadsheet import step needs a stable contract under KIT balance at $0.002 per successful item; validation failures never consume balance after the engine rejects the request. Pair this endpoint with scientific-notation or base-conversion tools when the next step is reformatting rather than rational reduction.

Tutoring and curriculum generators

Lesson builders produce worked decimal-to-fraction examples with structured JSON for flashcards, step sheets, and auto-graded drills without embedding a full computer-algebra stack.

Measurement and data pipelines

Scripts that ingest decimal measurements call a stable prepaid endpoint to store exact rationals instead of reimplementing gcd reduction and repeating-decimal algebra in every language.

Read the full KIT documentation →