Mohammad Amir delivers the ball on the third day of the final Test between Pakistan and the West Indies at the Sharjah Cricket Stadium. File / AP
The 27-year-old, regarded as one of the best left-arm pacers after countryman Wasim Akram, said he wants to move away from the traditional format.
"It has been an honour to represent Pakistan in the pinnacle and traditional format of the game," Amir is quoted as saying in a Pakistan Cricket Board (PCB) release.
"I, however, have decided to move away from the longer version so I can concentrate on white ball cricket."
Amir said he is committed to play for Pakistan in ODIs and Twenty20s.
"Playing for Pakistan remains my ultimate desire and objective, and I will try my best to be in the best physical shape to contribute in the team's upcoming challenges, including next year's ICC T20 World Cup (in Australia).
"It has not been an easy decision to make and I have been thinking about this for some time. But with the ICC World Test Championship commencing shortly, and Pakistan boasting some very exciting young fast bowlers, it is appropriate that I call on my time in Test cricket so that the selectors can plan accordingly."
PCB managing director Wasim Khan praised Amir's services.
"Amir has been one of the most exciting and talented left-arm fast bowlers in Test cricket in recent times. We respect his decision and look forward to him continuing to play an integral role in white ball cricket for Pakistan."
Mohammad Amir celebrates the dismissal of India's captain Virat Kohli during the Cricket World Cup match. File / AP
Amir is currently in England where he is signed to play for Essex in the English season.
Amir made an impressive entry into international cricket as a 17-year-old, taking six wickets in his debut Test against Sri Lanka at Galle in 2009.
The following year, he was instrumental on a tour in England, helping Pakistan to level a two-match neutral-venue series against Australia with seven wickets in the Leeds Test.
He took 20 wickets in four Tests against England but it culminated in a shocking spot-fixing saga unearthed by the now-defunct tabloid News of the World.
Amir, along with then Test captain Salman Butt and new-ball partner Mohammad Asif, was charged for illegally taking money in return for delivering deliberate no-balls in the Lord's Test.
All three were banned for a minimum of five years and were also jailed by a UK court.
Amir returned to play for Pakistan again in 2016 but the other two failed in their bids to resume their international careers.
Overall, Amir took 119 wickets in 36 Tests, the last of which was against South Africa earlier this year. His best bowling returns —six for 44 — were against the West Indies in Kingston in April 2017.
Amir, who is married to British citizen Nargis Malik, has already applied for a "spouse visa," which means he can stay in England for 30 months.
Sarfaraz Ahmed's side needed to smash the world record for margin of victory in a one-day international but, after winning the toss at Lord's, they failed to muster enough runs to give them a chance.
Bangladesh must be all out for seven or lower if Pakistan are to deny New Zealand a place in the semi-finals alongside Australia, India and England.
Waqar shares a meaningful note to define the sportsmanship of the champions after India suffered their first defeat of this World Cup against the hosts
Australia faced a target of 267 in 48 overs to win the second Ashes Test after England captain Joe Root declared his side's second innings on 258-5 at Lord's on
Former India captain M.S. Dhoni has completed his two-week stint with the Territorial Army in Jammu and Kashmir. A picture of him playing cricket with kids in a basketball court on a cemented pitch has been going viral on social media.
A ninth Test century from captain Dimuth Karunaratne propelled Sri Lanka to a six-wicket win over New Zealand in the first cricket Test on Sunday.