We present a 2D inversion code for frequency-domain HEM data designed for inverting field scale surveys on normal desktop computers. The fundamental algorithm is a 2.5D algorithm with field separation into primary and secondary fields. Due to limited memory, as well as performance concerns, sectioning is introduced for splitting large surveys into smaller sections. Sectioning is only done when calculating the 2D forward and derivatives, and it is done with a sufficient overlap, such that vital 2D information is preserved. The algorithm uses a hybrid scheme which i) starts with 1D forward and inverse calculations, ii) then switches to 2D forward calculations and 1D derivatives, and iii) finally ends with full 2D calculations. The result of this is a code which produces results like a 2D code, but with a substantially shorter computational time.