The friendly will take place at Loftus Road on the 21st July.
Rangers cheif executive David Davies' had this to say:
"When you think about the most successful and important clubs in world football, Ajax are right up there with the very best"
"Our supporters already have Division One football to look forward to and now they can enjoy a prestigious pre-season fixture which I'm sure will capture everyone's imagination."
Ajax have already been crowned Dutch champions this season.