Preheat your air fryer to 400°F (200°C) for 3 minutes. This ensures even cooking from the moment you add the corn.
Prepare the corn by removing husks and silk completely. Rinse under cold water and pat dry thoroughly with paper towels.
Brush each ear of corn evenly with olive oil or melted butter. Make sure to coat all sides for maximum flavor development.
Season the corn with salt and pepper, rotating to distribute the seasonings evenly around each ear.
Place the corn in the air fryer basket, arranging in a single layer with space between each ear for proper air circulation. Work in batches if necessary.
Cook for 10-12 minutes, turning the corn halfway through cooking time. Look for golden brown spots developing across the kernels.
Check for doneness by piercing a kernel with a knife tip—it should be tender but still have a slight bite.
Remove carefully using tongs and transfer to a serving platter.
Add your favorite toppings while the corn is still hot, allowing butter to melt beautifully into the kernels.