An interdental brush is ideal for cleaning a headphone jack
The size of one of these brushes almost perfectly matches the size of the hole for your headphones on your devices, making it irreplaceable as a cleaning device. But remember: before cleaning the headphone jack, make sure the device is completely switched off.