The LHCb detector is currently being upgraded to be able to take data at higher luminosities and with greater efficiency in Run3. This involves replacement of many subdetector systems, including the vertex detector, upstream tracker, the photodetectors of the ring-imaging Cherenkov detectors, and the downstream tracker. Equally important will be a complete redesign of the data-acquisition system, eliminating the hardware trigger. The status of the upgrade and performance of the software trigger are presented. In addition, LHCb is planning an Upgrade II, a flavour physics experiment for the high-luminosity era. This would be installed in Long Shutdown 4 (2030) and targets an instantaneous luminosity of 1.5 x10^34 cm-2 s-1 and an integrated luminosity of at least 300fb-1. Physics goals include probing new physics scenarios in lepton flavour universality, obtaining unprecedented precision on CKM tests, and expanding the LHCb programme into new measurement areas such as Higgs decays to charm.