Math & Numbers
Fraction Decimal Converter
Convert between fractions and decimals with support for mixed numbers, improper fractions, and various decimal formats
text· Text resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/fraction-decimal-converter' \
-H 'Content-Type: application/json' \
-d '{"inputNumbers":"Enter fractions or decimals separated by commas, spaces, or newlines:\n1/2, 3 1/4, 5/8\n0.25, 3.75, 0.125\n1 2/3, 0.666, 7/3","conversionMode":"both","simplifyFractions":true,"showMixedNumbers":true,"maxDecimalPlaces":10,"decimalToFractionTolerance":1e-10,"showSteps":false}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/fraction-decimal-converterParameters
| Name | Type | Required | Description |
|---|---|---|---|
| inputNumbers | textarea | Yes | — |
| conversionMode | select | Yes | — |
| simplifyFractions | checkbox | No | — |
| showMixedNumbers | checkbox | No | — |
| maxDecimalPlaces | number | No | — |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-fraction-decimal-converter": {
"name": "fraction-decimal-converter",
"description": "Convert between fractions and decimals with support for mixed numbers, improper fractions, and various decimal formats",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=fraction-decimal-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "fraction-decimal-converter",
"arguments": {
"inputNumbers": "Enter fractions or decimals separated by commas, spaces, or newlines:\n1/2, 3 1/4, 5/8\n0.25, 3.75, 0.125\n1 2/3, 0.666, 7/3",
"conversionMode": "both",
"simplifyFractions": true,
"showMixedNumbers": true,
"maxDecimalPlaces": 10,
"decimalToFractionTolerance": 1e-10,
"showSteps": false
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).