How do you convert milligram per liter to milligram per kilogram?

1 mg per litre is 1 mg per kilogram, but only if you think of pure water. 1 litre of pure water weighs 1 kilogram.