Remove the husks and silks of the corn. Wash and pat dry.
Melt the butter and brush it evenly onto the corn.
Place the corn on the air fryer tray. Set the air fryer to 320°F.
Cook the corn for 15-20 minutes or until the kernels are soft and tender. Flip the corn over at the halfway mark (about 10 minutes in). If desired, slather the corn with additional butter, salt, and pepper to taste. Serve warm and enjoy!