Chelsea forward Schuerrle broke the deadlock in the 92nd minute, with Arsenal's Ozil adding a second in the 120th minute.
Abdelmoumene Djabou struck in the first minute of stoppage time to give Algeria a consolation goal.
This was Algeria's first ever appearance in the knockout stages and they covered themelves with glory, taking the game to the three-time champions.
Sporting Lisbon striker Islam Slimani had a goal disallowed for offside in the first half while Germany's best early chance came as the break beckoned, when only the lightning reflexes of Algeria keeper Rais Mbolhi denied first Toni Kroos' and then Mario Goetze from the rebound.
Mbolhi then made a superb flying fingertip save to deny Phillip Lahm.
In an enthralling evening's entertainment at this southern port city Mbolhi once again did the north African's proud, punching away Thomas Mueller's header with 10 minutes of regulation time remaining.
With the sides deadlocked, extra time was required, and Schuerrle finally was the man to find a way past Mbolhi, flicking the ball with the inside of his heel at close range after Mueller's cross from the left in the 92nd minute.
Friday's quarter-final at Rio de Janeiro's Maracana is a repeat of the 1986 semi-final won by the then West-Germany.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
