BACKGROUND: Few studies have compared breastfeeding rates before and during the pandemic using comparable data across time. We used data from two national maternity surveys (NMS) to compare breastfeeding rates in England before and during the pandemic. METHODS: Analysis was conducted using the NMS from 2018 (pre-pandemic; n = 4,509) and 2020 (during the pandemic; n = 4,611). The prevalence of breastfeeding initiation, and 'any' breastfeeding and exclusive breastfeeding (EBF) at 6 weeks and 6 months were compared between these surveys. Data were interpreted in the context of underlying trends in these prevalences from previous NMS (from 2010 and 2014), and annual routine data for England (from 2009-10 to 2020-21). Modified Poisson regression was used to estimate adjusted risk ratios (aRR) for the effect of birth during the pandemic (2020 versus 2018) on breastfeeding, with adjustment for sociodemographic and birth-related factors. RESULTS: Breastfeeding initiation and any breastfeeding at 6 weeks remained relatively constant in the NMS and the routine data. Birth during the pandemic was associated with a 3 percentage point decrease in EBF at 6 weeks in the NMS (aRR 0.92, 95%CI: 0.87, 0.98 for pandemic versus pre-pandemic), but a smaller decrease in the routine data. Birth during the pandemic was associated with a 3 percentage point increase in any breastfeeding at 6 months in the NMS (aRR 1.05, 95%CI: 1.00, 1.10). Breastfeeding varied across different groups of women in the NMS (i.e. marked inequalities), but the small changes observed between the pandemic and pre-pandemic NMS were broadly similar across the sociodemographic and birth-related factors examined (i.e. no change in inequalities). CONCLUSION: Breastfeeding initiation and any breastfeeding at 6 weeks in England were unaffected by the pandemic, and the persistent inequalities in breastfeeding did not widen. Services should aim to reduce these inequalities in breastfeeding which have been documented since the 1970s.