Filling hollow carbon nanotubes with chosen materials opens new possibilities of generating nearly one-dimensional nanostrutures. One simple approach to fill nanotubes is to use capillarity forces. Here, we have studied the wetting and capillarity by metal salts. First, nanotubes were opened by oxidation in air; subsequently, nanotubes were immersed in molten salts. We have observed a size-dependence filling indicating a lowering of the cavity-salt interface energy with decreasing diameter. By expressing the wetting conditions as a function of polarizabilities, it is possible to predict the threshold diameter for capillary filling of different materials.