Unit Converter Input avatar

Unit Converter Input

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Unit Converter Input

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

Jamshaid Arif

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

2

Monthly active users

a day ago

Last modified

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

FieldTypeRequiredDefaultDescription
valuenumber✅ YesNumeric value to convert. Must be non-negative.
fromUnitstring✅ YesSource unit (e.g., km, lb, celsius, liter).
toUnitstring✅ YesTarget unit (e.g., miles, kg, fahrenheit, gallon).
batchConversionsarray❌ No[]Optional array of {value, fromUnit, toUnit} objects for batch conversion. Overrides single conversion if provided.

⚙️ How It Works

  1. Single Conversion

    • Converts value from fromUnit to toUnit using standard conversion formulas.
  2. Batch Conversion

    • If batchConversions is provided, converts all items in the array.
    • Each object must have value, fromUnit, and toUnit.
  3. 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

  • value must be non-negative
  • batchConversions overrides the single value/fromUnit/toUnit input
  • Output is always in JSON for easy parsing and automation

📄 License

MIT License