A search for excited quarks decaying into the γ+jetfinal state is presented. The analysis is based on data corresponding to an integrated luminosity of 19.7fb−1collected by the CMS experiment in proton–proton collisions at √s=8TeVat the LHC. Events with photons and jets with high transverse momenta are selected and the γ+jetinvariant mass distribution is studied to search for a resonance peak. The 95% confidence level upper limits on the product of cross section and branching fraction are evaluated as a function of the excited quark mass. Limits on excited quarks are presented as a function of their mass and coupling strength; masses below 3.5TeV are excluded at 95% confidence level for unit couplings to their standard model partners