---
title: "Unit Converter"
method: POST
path: "/api/v1/tools/unit-converter"
tags: ["tools"]
---

# Unit Converter

`POST /api/v1/tools/unit-converter`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/unit-converter`
- Auth: HTTP bearer

Convert a value between units of length (m, km, cm, mm, mi, yd, ft, in, nmi, um), weight (kg, g, mg, lb, oz, st, t, us_ton, imperial_ton, ug), temperature (c, f, k), speed (kmh, ms, mph, kn) or data (b, kb, mb, gb, tb, in 1024 steps). Units are matched by key, full name or common alias.

## Request body

- object
  - `value` integer
  - `from` string
  - `to` string
  - `category` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `value` integer
    - `from` object
      - `key` string
      - `name` string
    - `to` object
      - `key` string
      - `name` string
    - `category` string
    - `result` number
    - `formatted` string

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
