The best months to visit Edinburgh is from June to August, though keep in mind that August might be quite busy with tourists.