What are latitude and longitude?

Latitude and longitude pin down any place on Earth. Latitude runs from 90 at the North Pole to -90 at the South Pole, and longitude from 0 at the Greenwich meridian to 180 in the east and -180 in the west. Map apps and GPS trackers write a place as two decimal numbers, latitude first: the Eiffel Tower is at 48.8584, 2.2945. Paper maps and many GPS screens use degrees, minutes and seconds instead, with a letter for the direction: 48°51'30"N, 2°17'40"E.

A quick check helps before you share the spot for a picnic or import a list of places: a lost minus sign puts the pin somewhere else entirely.

Tool description

Type or paste a pair into the Latitude and longitude field, and the result shows as you type: "Latitude and longitude is valid" or "Latitude and longitude is not valid". Spaces and line breaks around the pair are ignored.

The Degrees, minutes and seconds checkbox starts off, so the page checks decimal degrees. Turned on, it checks degrees, minutes and seconds instead, and decimal numbers fail.

Decimal degrees

  • Latitude, a comma, then longitude, with at most one space after the comma and none before it: 48.8584, 2.2945
  • South and west are negative: the Statue of Liberty is at 40.6892, -74.0445
  • Round brackets around the pair, and plus signs, are fine: (40.6892, -74.0445)
  • Latitude goes up to 90 and longitude up to 180, with or without a minus sign: 90.1, 0 and 0, 180.5 fail
  • Letters such as N and E, degree signs and semicolons fail

Degrees, minutes and seconds

  • Any symbol or space between the numbers: 40°41'21"N, 74°2'40"W and 40 41 21 N, 74 2 40 W both pass
  • All three numbers are needed, and something must follow the seconds, such as " or the letter: 40°41'21, 74°2'40 fails
  • The seconds can have decimals, such as 21.5"
  • South and west take the letters S and W: minus signs and brackets fail

Good to know

  • The comma always splits the pair, so decimal commas don't work: 48,85 passes as latitude 48 and longitude 85. Anything after a second comma, such as an altitude, is ignored.
  • A swapped pair passes when both numbers fit the latitude range, as 2.2945, 48.8584 does.
  • With degrees, minutes and seconds, anything that isn't a digit separates the numbers, a dot too, so decimal minutes such as 40°41.5'N, 74°2.5'W pass as minutes and seconds. The letters aren't checked either (a latitude ending in E passes), and the longitude's degrees aren't capped at 180.
  • To convert between the two forms, use the DMS to Decimal Degrees Converter or the Decimal Degrees to DMS Converter.

Features

  • Checks decimal degrees, or degrees, minutes and seconds
  • Rejects decimal latitudes beyond 90 and longitudes beyond 180
  • Results as you type, with no button to press
  • Runs in your browser, so nothing you type is sent anywhere