Use this guide to upgrade or replace the solid-state drive in a MacBook Air 11” Mid 2013. This MacBook Air uses a proprietary storage drive connector, and is therefore not compatible with common M.2 drives without the use of an adapter.
Before you perform this repair, if at all possible, back up your existing SSD. Then, either familiarize yourself with internet recovery or create a bootable external drive so you’ll be ready to install macOS onto your new drive and migrate your data to the new SSD.
Finally, we strongly recommend installing macOS 10.13 High Sierra (or a later macOS) before replacing the original SSD from your MacBook Air. Most new SSDs require updated storage drivers not found in versions of macOS prior to High Sierra.