Seconding Cronometer as a good tool; it’s the best I’ve found, supports data export, and isn’t full of “social” features that obscure the key feature: easy and accurate calorie tracking. In particular it’s database is more accurate than the crowd sourced ones like MyFitnessPal.