Centimeter converter
2.54 centimetres is exactly one inch and 30.48 centimetres one foot. Convert any length between centimetres, inches, feet, metres and millimetres with those exact factors, whether it comes from a ruler, a sewing tape, a height chart or a product sheet. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Value
- 2.54
- From
- Cm
- To
- In
- Result
- 1 in
- Converted
- 1
- Value cm
- 2.54
- Factor
- 0.3937007874
A centimeter converter turns a length expressed in centimetres into inches, feet, metres, or millimetres, or the reverse, using exact SI and international-yard factors rather than rounded classroom shortcuts. Enter a finite length, choose the source unit and the target unit among cm, in, ft, m, and mm, and the tool converts through centimetres as the hub: one inch is exactly two point five four centimetres, one foot is exactly thirty point four eight centimetres, one metre is one hundred centimetres, and one millimetre is one tenth of a centimetre.
Why centimetres are the right hub for everyday length
The centimetre is the everyday metric length people actually measure with a school ruler, a sewing tape, a body-height chart, and a product specification sheet. It sits between the millimetre used for machining tolerances and the metre used for room and track distances, which is why a dedicated centimeter converter is a better landing than a giant multi-unit length toolbox when the search is simply centimeter. This capability uses centimetres as the conversion hub.
One metre equals one hundred centimetres by SI definition. One millimetre equals one tenth of a centimetre. One international inch equals exactly two point five four centimetres under the 1959 yard and pound agreement.
One international foot equals twelve inches and therefore exactly thirty point four eight centimetres. Converting through that hub means centimetres to inches is a division by two point five four, centimetres to feet is a division by thirty point four eight, centimetres to metres is a division by one hundred, and centimetres to millimetres is a multiplication by ten, with the reverse directions using the reciprocal factors.
Approximate mental rules such as divide by two point five or one inch is two and a half centimetres introduce a two percent scale error that shows up immediately on a one-hundred-eighty-centimetre height or a two-hundred-fifty-four-centimetre room length. Zero centimetres maps cleanly to zero in every other unit. Negative lengths are accepted as signed deltas when a signed change is meaningful.
Practical checks, related searches, and when not to use this page
Round-trip sanity checks are easy: convert two point five four centimetres to inches and confirm you receive exactly one inch after rounding, then convert one foot to centimetres and confirm thirty point four eight. Convert one hundred centimetres to metres and confirm one, or convert one centimetre to millimetres and confirm ten.
A typical adult height of one hundred eighty centimetres should come back as about five point nine zero five five one one eight one one zero two four feet after twelve-decimal rounding, which is a useful classroom check against a tape measure marked in feet and inches. Stay inside the absolute range so the product cannot overflow into a non-finite result the solver must reject.
This landing targets people searching for centimeter converter, convert centimeters, cm to inches, cm to feet, cm to meters, or cm to millimeters as a centimetre-centred tool. It is not a one-way centimetres-to-inches form that hides the other units, not a kilometres-and-miles travel converter, and not a lumber, shoe, or belt size chart. Prefer this capability when the length is already in centimetres, inches, feet, metres, or millimetres and you only need another of those five.
What you can do with it
Product and packaging dimension labels
Export centimetre warehouse measurements to inch or foot fields on product pages and packing slips with the same exact 2.54 and 30.48 factors every row.
Height, sewing, and classroom checks
Convert a body height or fabric length in centimetres to feet and inches, or millimetres, and compare hand work against deterministic steps before submitting a worksheet.
FAQ
How do I convert centimetres to inches with this tool?
Send value as a finite number, from as cm, and to as in.
How many centimetres are in one foot?
Exactly 30.48 cm, because one international foot is twelve inches and one inch is exactly 2.54 cm. Convert from ft to cm to see that constant in the result.
Which length units does the centimeter converter support?
Five units through a centimetre hub: cm, in (inch), ft (foot), m (metre), and mm (millimetre).
What happens if the input is not a finite number?
Missing fields and unknown units fail the same way. Failed tasks are not charged.
Is the centimeter converter free?
The browser tool is free and runs locally.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/conv/centimeter \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"value":2.54,"from":"cm","to":"in"}'const res = await fetch("https://api.kit.forhosting.com/conv/centimeter", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"value": 2.54,
"from": "cm",
"to": "in"
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/conv/centimeter",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"value": 2.54,
"from": "cm",
"to": "in"
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/conv/centimeter", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"value":2.54,"from":"cm","to":"in"}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"value":2.54,"from":"cm","to":"in"}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/conv/centimeter", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"value": 2.54,
"from": "cm",
"to": "in"
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "conv.centimeter",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Invalid or non-finite input fails with a clear invalid_input error instead of inventing a number.
How to call the API and what comes back
Canonical unit tokens are cm, in, ft, m, and mm. Absolute values must stay within the published limit. Send a JSON body with three required fields: value, a finite number for the length magnitude; from, the source unit; and to, the target unit. Aliases such as length, amount, size, from_unit, to_unit, centimeters, inches, feet, meters, and millimetres are accepted so SDK clients and form posts can use the name that fits the product. On success the response echoes the rounded value, sets from and to to canonical tokens, sets result, converted, and unit to the converted length and its unit, value_cm to the centimetre hub intermediate, factor to the rounded from-to multiplier, cm_per_inch to two point five four, cm_per_foot to thirty point four eight, formula to the string result equals value times open parenthesis cm_per of from over cm_per of to close parenthesis, message to a short English summary, steps to an ordered array of substitution lines, and supported_units to the five tokens. Failed validation—missing fields, non-finite numbers, bare plus or minus signs, non-numeric strings, unknown unit names, values outside absolute limits, or a non-finite converted result—returns invalid_input and is never charged. Pricing is a flat $0.002 per successful request with unit item. Prefer bare numbers when you control the client; string numbers are accepted only when they match a strict finite numeric pattern without unit suffixes or thousand separators in the payload.
Practical checks, related searches, and when not to use this page
Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners deliberately omit value or pass text instead of a finite number. Pin the rounded JSON in tests so browser and API arithmetic never drift across releases.
Integration use cases
Unit-test fixtures for length-aware software
Engineers pin golden JSON for centimetre-hub cases so browser and API arithmetic never drift when software talks in inches, feet, metres, or millimetres.