We prove partial regularity of minimizers u for p(x)-energy functionals of the following type:assuming that A αβ ij (x, u) and p(x) are sufficiently smooth and that p(x) is subquadratic. We prove that u ∈ C 0,α (Ω0) for some α ∈ (0, 1) and an open set Ω0 ⊂ Ω with H m−γ 1 (Ω − Ω0) = 0, where H s denotes the s-dimensional Hausdorff measure and γ1 = infΩ p(x).