How To Fix Earphone Cord. Carefully insert the heat-shrink sleeve into your headphone wire and apply enough heat to it in order to constrict it. Just let it hang there.

Use caution to avoid cutting too far into the wire. This sleeve will protect and insulate your newly-repaired headphone wire. If you feel comfortable get some fine heat shrink a soldering iron and some solder and solder the proper wires to each other.
Cut the cable and prepare the wires.
Cut above the frayed portion of the cable using wire cutters. Unscrew the casing from the plug and slip the casing on the wire. You might cringe a bit especially if your headphones are fancy but its really not that big. Using the wire cutters strip away approximately one inch of wire coating.

