International audienceIn this paper, we address a classical case of the Calder\'on (or conductivity) inverse problem in dimension two. We aim to recover the location and the shape of a single cavity ω (with boundary γ) contained in a domain Ω (with boundary Γ) from the knowledge of the Dirichlet-to-Neumann (DtN) map Λγ:f⟼∂nuf∣Γ, where uf is harmonic in Ω∖ω, uf∣Γ=f and uf∣γ=cf, cf being the constant such that ∫γ∂nufds=0. We obtain an explicit formula for the complex coefficients am arising in the expression of the Riemann map z⟼a1z+a0+∑m⩽−1amzm that conformally maps the exterior of the unit disk onto the exterior of ω. This formula is derived by using two ingredients: a new factorization result of the DtN map and the so-called generalized P\'olia-Szeg\"o tensors (GPST) of the cavity. As a byproduct of our analysis, we also prove the analytic dependence of the coefficients am with respect to the DtN. Numerical results are provided to illustrate the efficiency and simplicity of the method