Does not need a cable. Plug directly into the USB A port of the PC/Mac/charger of the smartphone (after unplugging the corresponding cable from the charger). For the latest devices with only USB C: via adapter to USB A port. Or instead of an adapter: an old smartphone charger.