What the numbers mean
With lithium cylindrical cells, the size is in the name: 18650 stands for approx. 18 mm diameter and 65 mm length (the 0 stands for the cylindrical design), 21700 for 21 mm × 70 mm. The designation describes only the design, not the cell chemistry.
Nickel cells have their own names such as Sub-C, AA or 4/3FA. A nickel cell of similar size operates at 1.2 V and is not an interchangeable 18650 cell.