What gets removed
With "Everything": the GPS position (latitude, longitude, altitude, direction), the camera or phone and its lens and serial number, the date and time, the software and editing history, the embedded thumbnail (which can still show the uncropped picture), the XMP and IPTC blocks (author, keywords, caption, location names), comments, Content Credentials and any second image a phone stores after the photo. "Only the location" removes the GPS data alone; "Everything except author and copyright" keeps those two fields.
What is kept
The pixels: in a JPEG, PNG or WebP the image data is copied byte for byte, never recompressed, so the quality is exactly the same. The orientation: a phone stores many photos sideways with a rotation tag, kept alone so the photo stays upright. The colour profile (Display P3 on recent phones), so the colours don't shift. Both can be turned off.
HEIC (iPhone) and TIFF are the exception: a browser can read them but not write them, so they come out as a 95 % quality JPEG, drawn upright and in standard colours, with no metadata.
Remove EXIF on iPhone, Android, Windows and Mac
iPhone: when sharing, tap Options and turn Location off, or in Photos tap "i" › Adjust › No Location. Android: in Google Photos, open the photo's details and remove the location; turning off "Save location" in the camera stops it for new photos. Windows: right-click › Properties › Details › "Remove Properties and Personal Information". Mac: Preview can remove the location (Tools › Show Inspector › GPS) but not the other fields.
Those menus remove part of the data, one photo at a time, and differ on each device. This page works the same everywhere, removes every field at once, cleans a batch, and tells you what was removed.
Why remove metadata before sharing
Location is the main risk: a photo of an item for sale, a pet or a child taken at home or school gives away the place to within a few metres. The date and time show your habits; the camera and its serial number can link photos posted under different names.
Big social networks strip metadata from what others see, but files sent by email, cloud link, messaging "as a document", forums and marketplaces usually keep it. Cleaning photos before they leave your device settles it, whatever the site does.