The officer was stabbed in the stairwell of a metro station at Medborgarplatsen, officials said.
The entire square, which is popular with tourists, and a nearby nursery have been sealed off by officers. A manhunt is underway.
Witnesses on social media said the attacker “snuck up behind the policeman” and stabbed him “unprovoked”.
The nursery is attended by 70 children. There are no indications the building is in danger.
Stockholm police said: “We have a policeman who has been hurt at Medborgarplatsen.

vCard.red is a free platform for creating a mobile-friendly digital business cards. You can easily create a vCard and generate a QR code for it, allowing others to scan and save your contact details instantly.
The platform allows you to display contact information, social media links, services, and products all in one shareable link. Optional features include appointment scheduling, WhatsApp-based storefronts, media galleries, and custom design options.
“We have a number of patrols.”
A witness said: “An ambulance has been here … it is unclear if it was with the police officer who was hurt.”
Police were alerted to the stabbing at 10.30am local time (11.30am BST).
This is a breaking story, more to follow…