Kilometers to nanometers (km to nm) converter
What is a kilometers to nanometers converter?
A kilometers to nanometers converter is an online tool that translates a length measured in kilometers (km) into its equivalent in nanometers (nm), and the other way around. Both units belong to the metric system, but they sit at opposite ends of the scale: the kilometer is a large unit used for distances such as roads and elevations, while the nanometer is one of the smallest practical units, used to describe wavelengths of light, the size of viruses, and features on a microchip.
Because the two units are separated by twelve orders of magnitude, converting between them by hand is error-prone. This converter handles the long string of zeros for you, so you can move from the everyday scale of a kilometer to the molecular scale of a nanometer with a single entry.
How it works
The kilometer and the nanometer are both defined relative to the meter, the base unit of length in the International System of Units (SI):
- 1 kilometer = 1,000 meters (10³ m)
- 1 nanometer = 0.000000001 meter (10⁻⁹ m)
To convert kilometers to nanometers, you first express both units in meters and then divide. One kilometer is 10³ meters, and each meter contains 10⁹ nanometers, so one kilometer equals 10³ × 10⁹ = 10¹² nanometers. In other words, a single kilometer is one trillion nanometers.
The reverse direction simply undoes that scaling: divide the number of nanometers by 10¹² (one trillion) to recover the length in kilometers.
Formula
To convert kilometers to nanometers, multiply by one trillion:
To convert nanometers to kilometers, divide by one trillion:
Kilometers to nanometers conversion table
The table below lists common kilometer values together with their nanometer equivalents. Because the numbers grow quickly, they are shown in both full and scientific notation.
| Kilometers (km) | Nanometers (nm) | Scientific notation |
|---|---|---|
| 0.001 | 1,000,000,000 | 1 × 10⁹ |
| 0.01 | 10,000,000,000 | 1 × 10¹⁰ |
| 0.1 | 100,000,000,000 | 1 × 10¹¹ |
| 1 | 1,000,000,000,000 | 1 × 10¹² |
| 2 | 2,000,000,000,000 | 2 × 10¹² |
| 5 | 5,000,000,000,000 | 5 × 10¹² |
| 10 | 10,000,000,000,000 | 1 × 10¹³ |
| 100 | 100,000,000,000,000 | 1 × 10¹⁴ |
Examples
Example 1: 1 kilometer to nanometers
Multiply the number of kilometers by 10¹²:
So 1 kilometer equals one trillion (1 × 10¹²) nanometers.
Example 2: 2 kilometers to nanometers
Two kilometers come out to two trillion (2 × 10¹²) nanometers.
Example 3: 1 trillion nanometers to kilometers
Working backwards, divide the nanometers by 10¹²:
One trillion nanometers is exactly 1 kilometer, confirming that the two conversions are inverses of each other.
Notes
- The conversion is exact: both units are defined from the meter, so 1 km is precisely 10¹² nm with no rounding involved.
- Results in nanometers become very large very quickly. Scientific notation (for example, 1 × 10¹²) is often the clearest way to write them.
- The nanometer is the unit of choice in fields such as optics, semiconductor manufacturing, and biology, while the kilometer dominates geography and transport, which is why a converter is so handy when one discipline borrows data from another.
- This tool also accepts inches, feet, and yards, so you can mix metric and imperial units in either field if needed.
Frequently asked questions
How many nanometers are in a kilometer?
There are exactly 1,000,000,000,000 nanometers in one kilometer, which is one trillion (1 × 10¹²) nanometers.
How do I convert nanometers back to kilometers?
Divide the number of nanometers by 10¹² (one trillion). For example, 5 × 10¹² nm ÷ 10¹² = 5 km.
Why is the number so large?
A kilometer and a nanometer differ by twelve powers of ten. The kilometer is a macroscopic distance unit and the nanometer measures objects near the atomic scale, so a single kilometer contains an enormous number of nanometers.
Is the kilometer to nanometer conversion exact or approximate?
It is exact. Both units are derived directly from the SI base unit, the meter, so the factor of 10¹² is a defined value, not a measured approximation.
Where would I actually use nanometers?
Nanometers are used to express the wavelength of visible light (roughly 400–700 nm), the dimensions of transistors on a microchip, the diameter of DNA, and the size of viruses and many proteins.
Can I convert fractions of a kilometer?
Yes. Any decimal value works. For instance, 0.001 km equals 1,000,000,000 nm (1 × 10⁹ nm).