Enter a mass density in any field and convert it to the other units, including g/cm³, kg/m³ and kg/dm³.
Runs locally in your browserThe Density Unit Converter changes a value between six metric units of mass density: gram per cubic centimetre, kilogram per cubic centimetre, kilogram per cubic decimetre, gram per cubic metre, gram per cubic decimetre and kilogram per cubic metre. Type the number in the row of the unit you have — the other five rows fill with the equivalents as you type — and press Convert or Enter to have the status line report what was converted.
The conversion runs in this browser from the definitions below, so the page keeps working offline and nothing you type is uploaded. Results carry twelve significant digits, and a value that cannot be read leaves the other rows empty instead of showing the numbers of the previous run.
Every row converts through kilograms per cubic metre, the SI derived unit of density, so each unit is one fixed number: 1 g/cm³ = 1e-3 kg ÷ 1e-6 m³ = 1000 kg/m³, 1 kg/cm³ = 1e6 kg/m³, 1 kg/dm³ = 1 kg/L = 1000 kg/m³, 1 g/dm³ = 1 g/L = 1 kg/m³ and 1 g/m³ = 1e-3 kg/m³. The kg/m³ row is the base unit itself and reads back unchanged.
One litre is one cubic decimetre, so kg/dm³ is the same unit as kg/L and g/dm³ the same as g/L; a density quoted in g/mL is the same number as in g/cm³. Water at 4 °C is about 1 g/cm³, which is 1000 kg/m³ — the reason both values appear side by side in reference tables.
Results carry twelve significant digits and are written as plain decimals between 1e-6 and 1e12 and in exponent notation outside that window, so 1 kg/m³ reads 0.000001 kg/cm³ and 0.001 g/cm³ rather than a long row of binary noise.
A comma is refused with an explanation instead of being deleted: half the languages this page is served in use it as the decimal mark, and the earlier filter turned 1,5 into 15 without a word. Exponent notation such as 1e3 is accepted, a negative value keeps its sign, and the status line under the table reports the row that was converted.
It converts units of mass density only. Thickness, area density and basis weight are different quantities, and the tool does not turn a density into a mass or a volume: that also needs the volume of the body, because 1 m³ of a material is not its density.
No reference densities are built in either. A value that has to come from a standard — the density of water at a given temperature, or of a particular alloy — has to be looked up elsewhere. The arithmetic here is exact for the definitions above, but the measurement it started from is only as good as its source.