Remove both doors by lifting up toward the top pivot spring. Allow it to compress so the bottom comes out of the connection point. Lower the top portion of the door out of the top pivot spring.
Remove the top roller from the doors, as you won't need them since the door will swing open instead of sliding on the track. Leave the top and bottom pins that hold the door into the brackets at the outer edges of the door. This is how you will keep the door in place once you are done with the modifications.
Place the bifold doors on a flat surface with the back side facing up. Place a level across both parts of the door to ensure it's flat.
Position a mending plate 3 inches from the top of the door so the plate is placed evenly on either side of the crack where the door folds. Drill through the screw holes on the mending plate to make pilot holes.
Place screws in the holes and secure them with a drill to hold the mending plate in place. Install two additional mending plates, one in the middle and one about 3 inches from the bottom of the door. The three mending plates hold the door straight securely from top to bottom.
Place the doors back on the brackets by positioning the top pin back into the top bracket. Press up hard enough to allow the bottom pin to slide into the bottom bracket.
Cut a 1-by-3-inch board to fit the width of the door opening. Screw the board into place along the top edge of the closet opening to create a stop for the new swinging doors.
Attach a magnetic door closing mechanism to the top corner of each door. Attach the other part of the mechanism to the board on the closet opening. This holds the doors closed so they won't swing open on their own since they are no longer held in place with the top rollers.