Density Converter

Runs locally in your browser. Nothing leaves your device.

Instantly convert density values between kg/m³, g/cm³, g/mL, kg/L, lb/ft³, lb/in³, and US and Imperial gallon units.

Use a comma or period as the decimal separator; do not use thousands separators.

All units

SI and metric

Milligram per cubic metre (mg/m³)
1,000,000,000
Gram per cubic metre (g/m³)
1,000,000
Milligram per litre (mg/L)
1,000,000
Kilogram per cubic metre (kg/m³)
From
1,000
Gram per litre (g/L)
1,000
Milligram per millilitre (mg/mL)
1,000
Tonne per cubic metre (t/m³)
1
Kilogram per litre (kg/L)
1
Gram per millilitre (g/mL)
1
Gram per cubic centimetre (g/cm³)
To
1

Imperial and US cubic units

Pound per cubic foot (lb/ft³)
62.4279606
Slug per cubic foot (slug/ft³)
1.94032033
Ounce per cubic inch (oz/in³)
0.578036672
Pound per cubic inch (lb/in³)
0.036127292

Gallon-based units

Ounce per Imperial gallon (oz/Imp gal)
160.358606
Ounce per US gallon (oz/US gal)
133.526471
Pound per Imperial gallon (lb/Imp gal)
10.0224129
Pound per US gallon (lb/US gal)
8.34540445

How it works

  1. 1

    Enter value and source unit

    Enter the density value and choose the source unit.

  2. 2

    Choose the target unit

    Choose the target unit from one of the three groups.

  3. 3

    Copy the result

    Copy one or all results for further use.

Good to know

The density converter converts directly in your browser between SI/metric, Anglo-American cubic units, and gallon-based units, following ρ = m/V. The exact identity 1 g/cm³ = 1 g/mL = 1 kg/L = 1000 kg/m³ links the most common units.

Calculation runs locally in the browser. Important: this tool only converts units of an already existing density value — relative density, API gravity, and temperature-dependent material corrections are not included, since density itself depends on temperature, pressure, and material state.

Typical use cases

Convert material densities between unit systems

Convert kg/m³ to g/cm³ or lb/ft³, for example for material data sheets or technical documentation.

Interpret gallon-based density figures

Convert density figures from US sources with gallon-based units into metric values.

Tips for better results

Density is context-dependent

A density value only applies to specific temperature and pressure conditions — for precise applications, check the reference conditions of the source.

Use the exact g/cm³ identity

1 g/cm³ = 1 g/mL = 1 kg/L = 1000 kg/m³ is a useful mnemonic for quick mental calculations.

Features

  • Three unit groups

    SI/metric, Anglo-American cubic units, and gallon-based units are separated.

  • Local conversion

    Calculation happens directly in the browser, without transmission to a server.

  • Clear boundary from related quantities

    A note clarifies that relative density, API gravity, and temperature corrections are not included.

Frequently asked questions

Does the converter account for temperature effects?

No. It only converts units of an existing density value; temperature and pressure corrections are not included.

Are my inputs uploaded?

No. Conversion runs entirely locally in the browser.

Looking for another tool?

Every tool runs locally in your browser – no sign-up, no upload, and it works offline.