Inner-shell electrons naturally sense the electric field close to the nucleus, which can reach extreme values beyond 1015 V cm−1 for the innermost electrons1. Especially in few-electron, highly charged ions, the interaction with the electromagnetic fields can be accurately calculated within quantum electrodynamics (QED), rendering these ions good candidates to test the validity of QED in strong fields. Consequently, their Lamb shifts were intensively studied in the past several decades2,3. Another approach is the measurement of gyromagnetic factors (g factors) in highly charged ions4–7. However, so far, either experimental accuracy or small field strength in low-Z ions5,6 limited the stringency of these QED tests. Here we report on our high-precision, high-field test of QED in hydrogen-like 118Sn49+. The highly charged ions were produced with the Heidelberg electron beam ion trap (EBIT)8 and injected into the ALPHATRAP Penning-trap setup9, in which the bound-electron g factor was measured with a precision of 0.5 parts per billion (ppb). For comparison, we present state-of-the-art theory calculations, which together test the underlying QED to about 0.012%, yielding a stringent test in the strong-field regime. With this measurement, we challenge the best tests by means of the Lamb shift and, with anticipated advances in the g-factor theory, surpass them by more than an order of magnitude.