Shanghai is one of the 40 subbarrios of Santurce, a barrio of San Juan, Puerto Rico. It is a crossover sector located north and south of the Baldorioty Expressway, between Loiza Street (PR-37) and Gilberto Monroig Street. It is bordered by Isla Verde, Las Marías, Laguna Los Corozos, Merhoff, Villa Palmeras, and Ocean Park Beach.
According to demographic data from the United States Census, the population of Shanghai has varied over time. In 1940, it had a population of 3,650. By 2000, the population had grown to 11,331. In the 2010 census, Shanghai recorded a population of 9,438, with a population density of approximately 34,955.6 persons per square mile.
The subbarrio covers a total area of 0.73 square kilometers (0.28 square miles), of which 0.70 square kilometers is land and 0.026 square kilometers is water. The Puerto Rico Highway 26 runs through the area.