Unit Converter Input
Pricing
from $1.00 / 1,000 results
Go to Apify Store

Unit Converter Input
A versatile tool to **convert numeric values between different units**, with support for **single and batch conversions**. Works for length, weight, temperature, volume, and more.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Jamshaid Arif
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
2
Monthly active users
a day ago
Last modified
Categories
Share
⚖️ Unit Converter
A versatile tool to convert numeric values between different units, with support for single and batch conversions. Works for length, weight, temperature, volume, and more.
🚀 Features
- Convert a single value from one unit to another
- Supports batch conversions for multiple values in one request
- Flexible unit types: length (km, miles), weight (lb, kg), volume (liter, gallon), temperature (C, F), and more
- Easy to integrate into web apps, scripts, or automation pipelines
- Clear and structured JSON output
📥 Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | number | ✅ Yes | — | Numeric value to convert. Must be non-negative. |
fromUnit | string | ✅ Yes | — | Source unit (e.g., km, lb, celsius, liter). |
toUnit | string | ✅ Yes | — | Target unit (e.g., miles, kg, fahrenheit, gallon). |
batchConversions | array | ❌ No | [] | Optional array of {value, fromUnit, toUnit} objects for batch conversion. Overrides single conversion if provided. |
⚙️ How It Works
-
Single Conversion
- Converts
valuefromfromUnittotoUnitusing standard conversion formulas.
- Converts
-
Batch Conversion
- If
batchConversionsis provided, converts all items in the array. - Each object must have
value,fromUnit, andtoUnit.
- If
-
Supported Units
- Length: km, miles, m, cm, inches, ft
- Weight: kg, lb, g, oz
- Volume: liter, gallon, ml, cup
- Temperature: celsius, fahrenheit, kelvin
🧮 Examples
Single Conversion
Input
{"value": 10,"fromUnit": "km","toUnit": "miles"}
Output
{"value": 10,"fromUnit": "km","toUnit": "miles","convertedValue": 6.2137}
Batch Conversion
Input
{"batchConversions": [{"value": 10, "fromUnit": "km", "toUnit": "miles"},{"value": 5, "fromUnit": "lb", "toUnit": "kg"}]}
Output
[{"value": 10, "fromUnit": "km", "toUnit": "miles", "convertedValue": 6.2137},{"value": 5, "fromUnit": "lb", "toUnit": "kg", "convertedValue": 2.26796}]
🏗️ Use Cases
- Quick unit conversions for engineering, science, or personal use
- Integration into web applications or dashboards
- Batch processing for spreadsheets or data pipelines
⚡ Notes
valuemust be non-negativebatchConversionsoverrides the singlevalue/fromUnit/toUnitinput- Output is always in JSON for easy parsing and automation
📄 License
MIT License