Inches to cm converter
12 inches is 30.48 cm: multiply any inch length by the exact 2.54 and see the working on one line, for size charts, product listings, homework, shipping labels and DIY cut lists. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Inches
- 12
- Result
- 30.48
- Cm
- 30.48
- Factor
- 2.54
- Factor label
- 1 in = 2.54 cm (exact)
Converting inches to centimeters is one of the most common length unit tasks when product specs, school homework, DIY plans, and international shipping labels cross the imperial–metric boundary. This calculator multiplies your length by the exact international factor of 2.54 centimeters per inch—the same definition used in science, manufacturing, and education since the 1959 yard and pound agreement fixed one inch at 25.4 millimeters.
Where the 2.54 comes from
The inch used today is the international inch, defined so that one inch is exactly 2.54 centimetres, or 25.4 millimetres. The 1959 yard and pound agreement fixed that value and replaced older national inch standards, which is why it is the factor taught in schools and built into design software defaults and packaging rules worldwide. Converting is a single step: take the length in inches and multiply it by 2.54 to get centimetres. One inch gives exactly 2.54 cm and twelve inches, one foot, give 30.48 cm, with no rounding along the way.
When you need it, and what to watch for
Inches and centimetres meet wherever product specs, school homework, DIY plans and international shipping labels cross between imperial and metric. Online shops convert screen sizes, garment measurements and package dimensions for international catalogues; carpenters and hobbyists turn tape-measure readings into metric cut lists and material orders. Watch the sign: negative values are allowed for offsets, so a stray minus will carry into the result. And type only the number. A value such as a word or a number with text attached gets a clear message instead of a guessed length.
How the exact inches-to-centimeters factor works
The international inch is defined so that one inch equals exactly 2.54 centimeters, or equivalently 25.4 millimeters. That definition replaced older national inch standards and is the factor taught in schools and hard-coded in standards bodies, CAD defaults, and packaging regulations worldwide. To convert, take your length in inches and multiply by 2.54; the product is the length in centimeters.
For example, twelve inches—one foot—equals 30.48 centimeters, and one inch equals 2.54 centimeters on the nose. Negative values are allowed when you model signed deltas or offsets; zero converts to zero.
What you can do with it
Product specs and size charts
E-commerce and manufacturing teams convert display sizes, garment measurements, and package dimensions from inches to centimeters for international catalogs and compliance labels.
Homework and classroom checks
Students and teachers verify inches-to-cm answers with the exact 2.54 factor, see a readable formula line, and get a clear error when a non-numeric value is submitted.
Logistics and DIY plans
Shippers, carpenters, and hobbyists convert tape-measure readings into metric lengths for carriers, cut lists, and material orders without opening a spreadsheet.
FAQ
What happens if I send non-numeric input?
Missing fields, NaN, Infinity, and non-numeric strings are rejected and not charged.
Is the inches to cm converter free?
The browser tool runs free on your device.
How many centimetres is 12 inches?
12 inches, which is one foot, is exactly 30.48 centimetres. The page also shows the working as a single line, 12 in × 2.54, so you can copy both the answer and how it was reached.
Can I convert a negative number of inches?
Yes. Negative values are accepted when you work with signed differences or offsets, and the sign carries through to the centimetre result. Zero inches converts to zero centimetres.
Does the converter offer the old survey inch?
No. Every result uses the international inch of exactly 2.54 centimetres, or 25.4 millimetres, fixed by the 1959 agreement. There is no historical survey-inch option and no approximate lookup table.
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/inches-to-cm \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"inches":12}'const res = await fetch("https://api.kit.forhosting.com/conv/inches-to-cm", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"inches": 12
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/conv/inches-to-cm",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"inches": 12
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/conv/inches-to-cm", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"inches":12}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"inches":12}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/conv/inches-to-cm", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"inches": 12
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "conv.inches_to_cm",
"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
Results are deterministic and instant: the free browser tool runs entirely on your device, and the prepaid API returns the same JSON contract for apps, spreadsheets, and automation at $0.002 per successful item. Invalid or missing input fails clearly with invalid_input and is not charged, so you can validate forms without burning balance.
How the exact inches-to-centimeters factor works
This capability accepts a single finite numeric field named inches (aliases value, in, inch, and length) as a JSON number or a plain numeric string, including scientific notation when you need very large or very small lengths. Non-numeric strings, empty bodies, NaN, and Infinity raise invalid_input with a message that names the field, so client validation can surface the same error the API returns. There is no network call, no approximate lookup table, and no historical survey-inch option: every successful response uses the same exact factor and the method label exact_international_inch so downstream code can trust the contract.
Reading the response fields and using the formula string
The formula field restates the arithmetic as a single readable line—for example twelve in times 2.54 equals 30.48 cm—so user interfaces can show the working without rebuilding the expression. On success the JSON echoes the parsed inches value, returns cm and the synonymous result field with the converted length, and includes factor set to 2.54 plus a short factor_label that states the exact identity one inch equals 2.54 centimeters. Units are also named explicitly via from_unit in and to_unit cm for multi-converter dashboards that switch labels dynamically. Use cm or result when you only need the number for a database column; use formula when tutoring software, homework helpers, or packing-slip generators should display the calculation; use factor when you cache the constant for offline batch jobs that must match this endpoint bit-for-bit. Missing inches, pure text such as twelve inches spelled out without a number, and infinite magnitudes all fail with invalid_input and never consume prepaid balance after the engine rejects the request.
API usage, pricing, workflows, and practical limits
Send a JSON body with the required inches field, or any documented alias, and call either the free in-browser inches-to-cm converter for one-off checks or the prepaid KIT API when product catalogs, e-commerce size charts, logistics middleware, classroom tools, or mobile apps need a stable machine-readable contract. Successful conversions bill as one item at $0.002; validation failures are free. Pair this endpoint with your own reverse conversion or multi-unit length tools when a pipeline must round-trip imperial and metric labels, but keep this landing focused on the high-volume search intent inches to cm. Magnitudes above one quadrillion inches are rejected as out of range so Worker isolates stay safe.
Technical questions
How do I convert inches to centimeters?
Send JSON with inches set to a finite number (for example inches: 12). The response returns cm and result equal to inches × 2.54, plus a formula string.
What conversion factor does this calculator use?
The exact international factor: 1 inch = 2.54 centimeters (1 inch = 25.4 millimeters). There is no approximate or survey-inch mode.
Can I use aliases instead of the field name inches?
Yes. value, in, inch, and length are accepted aliases for the same required length field.