Cooperation within and across borders is of paramount importance for the provision of public goods. Parochialism – the tendency to cooperate more with ingroup than outgroup members – limits contributions to global public goods. National parochialism (i.e., greater cooperation among members of the same nation) could vary across nations and has been hypothesized to be associated with rule of law, exposure to world religions, relational mobility and pathogen stress. We conduct an experiment in participants from 42 nations (N = 18,411), and observe cooperation in a prisoner’s dilemma with ingroup, outgroup, and unidentified partners. We observe that national parochialism is a ubiquitous phenomenon: it is present to a similar degree across the nations studied here, is independent of cultural distance, and occurs both when decisions are private or public. These findings inform existing theories of parochialism and suggest it may be an obstacle to the provision of global public goods.