Pirajuí is a municipality in the state of São Paulo in Brazil. The population is 25,719 in an area of 823 km².