Zip Code Listings for Ocean City, Maryland The following are the areas codes and zip codes for Ocean City, Maryland 21842 (area code: 410) 21843 (area code: 410)