Asia is Earth's largest continent (44.6M km²), spanning from the Mediterranean to the Pacific, including ~48 countries (China, India, Japan, Russia, Indonesia, etc.).
The Middle East is a transcontinental region centered on Western Asia (plus Egypt in Africa). It includes ~17 countries (Saudi Arabia, Iran, Iraq, Turkey, Israel, UAE, etc.).
Key difference: The Middle East is a subregion of Asia (plus part of Africa), defined by culture, religion, politics, and history—not continental geography. All Middle Eastern countries (except Egypt) are in Asia, but not all Asian countries are Middle Eastern.