M.2 is known as Next Generation Form Factor that’s designed for replacing various devices especially SSDs. The X4 refers to the number of PCIe lanes used by the M.2 form card. Usually, the old M.2 card has only 2 PCIe lanes.