A large number of magnetic white dwarfs discovered in the SDSS have so far only been analyzed by visual comparison of the observations with relatively simple models of the radiation transport in a magnetised stellar atmosphere. We model the structure of the surface magnetic fields of the hydrogen-rich white dwarfs in the SDSS.