On most days, UTC and GMT show the same time to the second, which is why they are used interchangeably in conversation. They are not the same thing. GMT — Greenwich Mean Time — is a time zone: the mean solar time at the Greenwich meridian, which Britain uses in winter and which a handful of countries use all year. UTC — Coordinated Universal Time — is a time standard: an atomic time scale, maintained by an international agreement, that serves as the reference for civil time everywhere.
Where the two names come from
GMT came first, historically. It was the time of the observatory at Greenwich, adopted as the world's prime meridian at the International Meridian Conference of 1884, and it served as the practical reference for navigation and telegraphy for the following century. Its weakness is that it depends on the Earth, and the Earth's rotation is not perfectly regular: it slows, wobbles and occasionally lurches. A time scale based on it drifts.
UTC was the answer. It is built from atomic clocks, which are far more stable than the planet, and it is kept close to the Earth's rotation by the occasional insertion of a leap second — 27 of them since 1972, announced a few months ahead. The name itself is a compromise: the French wanted TUC and the English wanted CUT, so the compromise was UTC, which stands for neither.
Where the difference actually shows up
In everyday use the distinction shows up in three places. Aviation and computing use UTC, often written with a trailing Z — "14:00Z". The letter comes from the older system of nautical time zones, in which the zones were lettered from A to Z and Z was the one at the prime meridian. In the NATO phonetic alphabet that letter is spoken "Zulu", which is why pilots and soldiers call UTC Zulu time. Britain uses GMT as its winter zone name, which is why the abbreviation appears in timetables rather than the standard. And some countries keep GMT year-round — Ghana and Iceland among them — which makes "GMT" a zone in the ordinary sense, not just a synonym for the standard.
What to take away: when you need a number that everyone agrees on, use UTC — it does not change with the seasons and it is what the world's clocks are referenced to. When you need the name of a zone, use GMT, or better, use the offset: UTC+0 is unambiguous, while "GMT" invites the question of whether the speaker means the standard or the zone. And if a system gives you a time with no zone attached, treat it as unknown rather than assume it is UTC; a great many scheduling errors begin with that assumption.