Husk the corn and remove all the silk. Rinse under cold water to clean.
Preheat your air fryer to 400°F (200°C) for about 5 minutes.
In a small bowl, mix the melted butter, salt, and pepper.
Brush the butter mixture generously over each ear of corn, ensuring all sides are coated.
Place the corn in the air fryer basket, making sure to arrange them in a single layer for even cooking.
Cook the corn in the air fryer at 400°F (200°C) for 10-12 minutes, turning halfway through to ensure even cooking. The corn should be tender and slightly charred.
Carefully remove the corn using tongs and allow to cool slightly before serving.
Optional: Sprinkle with grated Parmesan cheese, chili powder, or squeeze a little lime juice over the top for added flavor.