The best months to camp in Yosemite are typically May through September, when the weather is warmer and most campgrounds are open. However, if you prefer fewer crowds and slightly cooler temperatures, consider visiting in late May or September. Keep in mind that some campgrounds may require reservations, so plan your trip accordingly. For more information about camping in Yosemite, you can visit the National Park Service's Yosemite camping page.