Skip to main content
Developer API

Free Unit Conversion API

Convert between 125+ units with a simple REST API. No authentication required. No signup needed.

Fast & Free

100 requests per day, no API key required

Simple REST API

GET request, JSON response, CORS enabled

No Auth Required

Start converting immediately, zero setup

Base URL

https://getnextool.com/api/v1

Convert Units

GET/api/v1/convert

Parameters

ParameterTypeRequiredDescription
fromstringYesSource unit code (e.g., kg, lbs, mi, km, celsius)
tostringYesTarget unit code (e.g., lbs, kg, km, mi, fahrenheit)
valuenumberNoValue to convert (default: 1)

Examples

Basic Conversion

Request
GET https://getnextool.com/api/v1/convert?from=kg&to=lbs&value=100
Response (200 OK)
{
  "from": {
    "unit": "kg",
    "label": "Kilograms",
    "value": 100
  },
  "to": {
    "unit": "lbs",
    "label": "Pounds",
    "value": 220.462
  },
  "formula": "1 kg = 2.20462 lbs",
  "toolUrl": "https://getnextool.com/convert/kg-to-lbs"
}

JavaScript / Fetch

JavaScript
const response = await fetch(
  "https://getnextool.com/api/v1/convert?from=mi&to=km&value=26.2"
);
const data = await response.json();
console.log(data.to.value); // 42.164808

Python / requests

Python
import requests

r = requests.get("https://getnextool.com/api/v1/convert", params={
    "from": "celsius",
    "to": "fahrenheit",
    "value": 37
})
data = r.json()
print(data["to"]["value"])  # 98.6

cURL

Terminal
curl "https://getnextool.com/api/v1/convert?from=gallons&to=liters&value=5"

List Available Conversions

Call the endpoint without parameters to get a list of all supported conversions:

Request
GET https://getnextool.com/api/v1/convert

Rate Limits

PlanLimitPrice
Free100 requests / 24 hours$0

This conversion allowance applies regardless of your web subscription. Pro and Business do not increase this API limit.

Error Codes

CodeDescription
400Missing or invalid parameters
404Conversion not found
429Rate limit exceeded (100/day on free tier)

Supported Categories

Weight
Length
Temperature
Volume
Area
Speed
Data
Time
Energy
Pressure

For the full interactive experience with charts and conversion tables, visit our conversion tools.

Get weekly tips for Unit Conversion API & more

No spam. Unsubscribe anytime.

Need More Calculators?

Browse eligible tools and their embed instructions on the widgets page, or explore the tool collection.

Get Free Financial Guides

Guides and updates about NexTool calculators.

No spam, ever Unsubscribe anytime Free guides included