CM to inches converter
2.54 cm is exactly one inch, so the converter divides your centimeters by 2.54 and shows each step, ready to check clothing size charts, DIY cut lists or homework. No two percent drift from the 2.5 shortcut. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Cm
- 2.54
- Result
- 1 in
- Converted
- 1
- Inches
- 1
- From unit
- cm
A centimetres-to-inches converter turns a metric length into the imperial inch value people still need for product specs, clothing size charts, display diagonals, and DIY cut lists. Approximate mental shortcuts such as divide by two point five are rejected in favour of the 1959 yard and pound agreement constant, so homework checks and catalog exports match engineering tables.
Why centimetres and inches still meet at 2.54
Centimetres belong to the SI-derived metric family used for everyday body measurements, packaging labels, and school science. Inches remain standard in many United States product dimensions, screen sizes, pipe schedules, and woodworking plans. The bridge between them is not a survey approximation: since the 1959 international yard and pound agreement, one inch is defined as exactly two point five four centimetres.
That makes the conversion a single exact division, inches equals centimetres divided by two point five four, or equivalently centimetres times the reciprocal factor one over two point five four. Teachers often still teach the rough rule of thumb divide by two point five, but that introduces a two percent scale error that shows up immediately on a hundred-centimetre height or a two-hundred-fifty-four-centimetre room length.
Practical tips, checks, and related searches
Prefer sending bare numbers when you control the client; string numbers are accepted only when they match a strict finite numeric pattern without units, thousand separators, or currency symbols. Round-trip sanity checks are easy: convert a known textbook value such as two point five four centimetres and confirm you receive exactly one inch after rounding, or convert one hundred centimetres and confirm roughly thirty-nine point three seven zero zero seven eight seven four zero one five seven inches.
When teaching, pair the exact path with the mental shortcut so students see the two percent drift on large lengths. Stay inside the absolute range so the division cannot overflow into a non-finite result the solver must reject. This landing targets people searching for cm to inches, convert centimeters to inches, or an exact two point five four calculator; it is not a general multi-unit length hub, not an inches-to-centimetres primary form, and not a footwear or belt size chart.
Prefer this capability when the input is already in centimetres and you only need inches; if you must convert among many units in one call, use a broader unit converter instead.
What you can do with it
Product and packaging dimension labels
Export centimetre warehouse measurements to inch fields on US-facing product pages and packing slips with the same exact 2.54 factor every row.
Homework and lab report checks
Students convert classroom centimetre readings to inches and compare hand work against deterministic steps before submitting worksheets.
DIY cut lists and screen specs
Home builders and gadget shoppers turn metric tape or catalog centimetres into inches for saw guides and display diagonal comparisons.
FAQ
What formula converts cm to inches?
Inches = centimetres ÷ 2.54. One inch is defined as exactly 2.54 centimetres by the 1959 international yard and pound agreement.
Is 2.54 exact or approximate?
Exact. This tool uses the international definition, not a survey-inch or a rough divide-by-2.5 estimate.
Can I convert inches back to centimetres?
This capability is centimetres → inches only. Multiply inches by 2.54 on your side, or use a bidirectional length converter for other units.
Is the cm to inches converter free?
The browser tool is free and runs locally.
How big is the error if I divide by 2.5 instead of 2.54?
About two percent, and always too many inches, because 2.5 is smaller than the real factor. On a person's height or a room length that gap is already visible, which is why the converter only uses 2.54.
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/cm-to-inches \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"cm":2.54}'const res = await fetch("https://api.kit.forhosting.com/conv/cm-to-inches", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"cm": 2.54
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/conv/cm-to-inches",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"cm": 2.54
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/conv/cm-to-inches", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"cm":2.54}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"cm":2.54}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/conv/cm-to-inches", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"cm": 2.54
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "conv.cm_to_inches",
"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.
Limits
max_abs | 1000000000000 |
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 missing input fails with a clear invalid_input error instead of inventing a number.
How to call the API and what comes back
Absolute values must stay within the published limit of one trillion. Send a JSON body with one required finite number field named cm. Aliases centimeters, centimetres, value, length, and cm_value are accepted so SDK clients and form posts can use the name that fits the product. On success the response echoes rounded cm, sets inches, result, and converted to the same rounded inch magnitude, unit to the token in, from_unit to cm and to_unit to in, factor to the rounded reciprocal one over two point five four, cm_per_inch to the exact constant two point five four, formula to the string inches equals cm divided by two point five four, message to a short English summary, and steps to an ordered array of substitution lines. Failed validation—missing fields, non-finite numbers, bare plus or minus signs, non-numeric strings, 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 and zero marginal unit price.
Practical tips, checks, and related searches
Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners deliberately omit cm or pass text.
Technical questions
What happens on missing or non-numeric input?
The API returns invalid_input naming the problem (for example a missing cm field). Failed tasks are not charged.