NMEA 0183 log reader: from sentences to a track

An NMEA 0183 log is plain text with one sentence per line, each starting with $ and a talker ID such as GP or GN. This nmea viewer turns the lines that report a fix into a GPS track. The log is read line by line in your browser.

  • RMC, GGA, GNS, GLL
  • Any talker ID
  • Checksums verified

Drop a GPS logger file

Files ending in .nmea, .nmea0183, .nma, .log or .txt are accepted; whatever the name, the page searches the text for sentences. Got a binary file too? Read a binary UBX log from the same receiver.

Which NMEA sentences make the track

RMC is the first choice for position, time and speed. When a second has no RMC, GGA, GNS or GLL fill in for it. Dates come only from RMC.

Any talker ID works, including $GP, $GN, $GL, $GA, $GB and $BD, so $GNRMC reads like $GPRMC. Example lines (made up, at the Eiffel Tower):

$GPGGA,123519.00,4851.504,N,00217.670,E,1,08,0.9,35.0,M,46.9,M,,*51
$GPRMC,123519.00,A,4851.504,N,00217.670,E,0.0,0.0,181126,,,A*52

Any gap of more than 5 minutes starts a new track, and so does a timestamp earlier than the one before it. Field by field: NMEA 0183 sentences explained. Then convert the NMEA log to GPX.

Lines that are skipped

Lines without a valid fix are skipped:

  • RMC or GLL with status V (and RMC with mode N)
  • GGA with fix quality 0, or any value other than 1, 2, 4 or 5
  • GNS with an empty mode or all N

GSA, GSV and VTG are ignored, and so are proprietary $P lines.

Checksums and broken lines

When a line ends in *hh, those two hex digits are checked against the line, and a wrong or malformed checksum drops it. A checksum that is cut short or has junk after it fails too. A line with no checksum at all is used only if its fields look valid. This nmea file viewer would rather skip a line than plot a bad position.

Satellites in use and HDOP

GGA carries the number of satellites in use and the HDOP. Turn on Advanced to see both as graphs. GSV is not read, so a log with RMC alone has nothing to show there.

NMEA 0183, not NMEA 2000

0183 is the text sentence format read here. NMEA 2000 is a binary network used on boats, and NMEA 2000 binary logs aren't supported.

Questions

Which NMEA sentences become the track?

RMC, GGA, GNS and GLL, when they report a valid fix. RMC is preferred for position, time and speed; the other three cover any second without an RMC. GSA, GSV and VTG are not used.

Are $GNRMC and $GNGGA lines read as well as $GPRMC?

Yes. Any two-letter talker ID is accepted, so $GNRMC and $GNGGA from a receiver using several satellite systems are read just like $GPRMC and $GPGGA. $GL, $GA, $GB and $BD talkers work too.

Why does the track have times but no date?

Only RMC sentences carry a date; GGA, GNS and GLL give the time of day alone. If your log has no RMC lines, or every RMC was dropped for lacking a fix, the track has times but no date.

Why are some lines in my log ignored?

A line is skipped when it reports no fix, fails its checksum, or is a type not read here, such as GSA, GSV, VTG or a proprietary $P line. The other lines still load.

Do .txt and .log files from a GPS logger work?

Yes. Many GPS loggers save their NMEA output with a .txt or .log ending. The extension doesn't decide anything: the page reads the text and picks out the sentences it recognises.

Can I see satellites in use and HDOP from the log?

Yes, with Advanced turned on. Both values come from GGA sentences, so the log needs GGA lines for these graphs. GSV is not read, so the list of satellites in view and their signal strengths are not shown.

Can I open an NMEA 2000 file?

No. NMEA 2000 binary logs, from the network boats use, aren't supported. This page reads NMEA 0183 text sentences, so if your plotter or gateway can log 0183 as text, open that file instead.