Rupit is a village in the county of Osona, in the subregion of the Collsacabra, in Catalonia, Spain. It is located at 822 m above sea level, 98 km from Barcelona.