While Shanghai doesn't pop out as a city famous for its temples, there are a number of interesting monasteries and temples to visit in Shanghai and they make a nice quiet stop within a harried day of shopping and sightseeing. It's easy to spend an hour wandering around any of these places and while not very busy outside of local festival days and Chinese New Year, you'll get a sense of Chinese religious practices.
Jing'An Temple (Jing'An Si)
Sitting on one of the busiest roads in Shanghai, Jing'An temple is one of the few you'll probably see before you know what it is. Impressive from the outside with imposing walls, it is actually one of the less interesting inside - but still worth a look.
It has a long history, originally built in the 3rd century, it was moved to its present site in the Song Dynasty, destroyed in 1851, rebuilt, turned into a plastics factory during the Cultural Revolution and renovated back into a temple in 1983. It is undergoing constant renovation but its Song Dynasty architecture is beautiful and the temple is popular with tourists and practicing Buddhists alike.
Address: 1686 Nanjing West Road（南京西路1686号）
Longhua Temple & Pagoda (Longhua Si)
While slightly less famous than the Jade Buddha Temple, Longhua is the oldest and largest Buddhist temple in Shanghai. The monastery is said to have been founded in the 3rd century, while the 7-story pagoda (not open to visitors) dates from the 10th century.
There are five main halls to wander through, as well as the Thousand Luohan Hall where hundreds of golden statues of arhats. (Arhats or Luohan are Buddhist saints, disciples of Buddhism who are said to have gained enlightenment.)
Visit during the Longhua Temple Fair when hundreds of stalls selling traditional Chinese food and trinkets are set up.
Address: 2853 Longhua Road（龙华路2853号）
Confucius Temple (Wen Miao)
The temple is located on a small pedestrian street so your taxi driver might stop and just jerk a finger in the direction of this sedate temple. The street vendors outside selling everything from giant stuffed animals to squid-on-a-stick offers an interesting juxtaposition to the refined gardens and quiet temple complex.
Within the compound, there's a large statue of Confucius outside the Dacheng Hall. You can view bizarre-shaped stones and wood (tree roots) in several of the other halls but don't miss the Kuixing Pavilion in the western part of the compound. The stark gardens are well-maintained and relatively un-touristed offering a lovely respite.
Address: 215 Wenmiao Road（文庙路215号近中华路）
Jade Buddha Temple (Yufo Si)
The Jade Buddha Temple is probably the most famous temple in Shanghai and will be printed on every hotel card destination listing. While the complex is small, it is interesting to wander through and has a number of halls to stop and peek in: Hall of Heavenly Kings, Great Treasure Hall, and 10,000 Buddhas Hall. The centerpiece is, of course, the Jade Buddha located in its own hall (extra 10rmb entry) at the back of the complex. Totter up the well-worn stairs to have a look at the nearly more than 6 foot (1.9m) tall pale-green Burmese jade likeness.
Address: corner of Anyuan and Jiangning Roads (安远路170号，近江宁西路）
Temple of the Town Gods (Chenghuang Miao)
All Chinese towns traditionally had a Daoist temple dedicated to the town god. Shanghai's dates from 1403, though the current building site is new, constructed in the 1990s. The town god, the Míng Dynasty emperor Hóngwu's likeness is in the rear hall.
A visit to this small but interesting temple is easy to add on to a visit to the Old Town, where the Yu Gardens and Bazaar are located.
Address: Old Town Bazaar, north side of Fangbang Zhong Road near Anrén Road （方浜中路249号）