megaradrp reduces data for MEGARA, the optical Integral-Field Unit and Multi-Object Spectrograph designed for the 10.4m Gran telescopio Canarias (GTC) in La Palma, Spain. The online version of megaradrp allows for on-the-fly data processing, which includes bias correction, trimming, fiber tracing and fixed-aperture extraction, fiber-flat and twilight-flat correction and wavelength calibration. The offline processing version additionally includes a detailed cross-talk-corrected extraction and absolute flux calibration whenever possible.