ElectricPropulsion.org
Repower calculator, guides & CAN tools

NMEA 0183 sentence decoder

Paste sentences from a GPS, depth sounder, wind instrument or AIS — or open a whole log — and read every field in plain words, with checksums checked and the NMEA 2000 PGNs a gateway would turn them into.

One sentence per line. Timestamps or other text before the $ or ! are ignored, so most logger and terminal captures paste as they are. Everything is decoded in your browser; nothing is uploaded.

Summary

Sentences
13
Bad checksum
0
No checksum
0

Talkers

  • GP GPS
  • SD Depth sounder
  • II Integrated instrumentation
  • IN Integrated navigation
  • HC Heading / compass
  • AI AIS

Sentence types

Through a gateway

NMEA 2000 PGNs a Yacht Devices YDNG-03 creates from these sentences:

  • 126992 System Time
  • 127245 Rudder
  • 127250 Vessel Heading
  • 127258 Magnetic Variation
  • 128259 Speed, Water referenced
  • 128267 Water Depth
  • 129025 Position, Rapid Update
  • 129026 COG & SOG, Rapid Update
  • 129029 GNSS Position Data
  • 129033 Local Time Offset
  • 129038 AIS Class A Position Report
  • 130306 Wind Data
  • 130311 Environmental Parameters

Type or paste a sentence, with or without its checksum, to get the correct one.

$IIMTW,14.6,C*10

Decoded

  • Talker
    GP GPS
    Sentence
    RMC Recommended minimum specific GNSS data
    Time
    12:35:19.00 UTC
    Status
    A — valid
    Latitude
    51.541350° (51° 32.4810′ N)
    Longitude
    -0.087300° (0° 5.2380′ W)
    Speed over ground
    5.4 kn
    Course over ground
    084.4 ° true
    Date
    19/11/26 (dd/mm/yy)
    Magnetic variation
    1.2° W
    Mode
    A — autonomous
    Checksum
    3A correct
    NMEA 2000
    126992 System Time; 127258 Magnetic Variation; 129025 Position, Rapid Update; 129026 COG & SOG, Rapid Update

Reading a sentence

$GPRMC,123519.00,A,5132.4810,N,00005.2380,W,5.4,084.4,191126,1.2,W,A*3A

  • $ starts the sentence (! for AIS).
  • GP is the talker — a GPS. RMC is the sentence type: recommended minimum data.
  • The fields follow, separated by commas: time, status, latitude and longitude (degrees and minutes, then the hemisphere), speed in knots, course, date, variation and mode. An empty field means no data.
  • *3A is the checksum: the XOR of every character between $ and *, in hexadecimal.

Latitude 5132.4810 is 51° and 32.4810 minutes, which is 51.541350°. The decoder converts every position this way.

What it decodes

Position & timeRMC, GGA, GLL, ZDA
Course & speedVTG, VHW, VLW
SatellitesGSA, GSV
Heading & steeringHDG, HDM, HDT, ROT, RSA, XTE
DepthDBT, DPT
Wind & waterMWV, MWD, VWR, MTW
Engine & sensorsRPM, XDR
AISVDM, VDO — position reports (types 1–3, 18); type and MMSI for the rest

Any other sentence — including manufacturers' proprietary $P… sentences — is still split into its fields and checksum-checked. Multi-part AIS messages are joined before decoding.

Connecting 0183 to NMEA 2000

To get these instruments onto an NMEA 2000 network — or a Victron GX device — you need a gateway. The NMEA 0183 to NMEA 2000 gateway guide covers wiring, baud rates and filters, and the network planner checks the NMEA 2000 side. Once data is on the CAN bus, the CAN log analyzer decodes it.

Questions

How is the NMEA 0183 checksum calculated?

It is the 8-bit XOR of every character between the $ (or !) and the *, written as two hexadecimal digits after the *. The checksum calculator on this page works it out for any sentence.

What do the first letters of an NMEA 0183 sentence mean?

After the $ come a two-letter talker ID (GP for a GPS, GN for combined satellite systems, II for integrated instruments, SD for a depth sounder, AI for AIS) and a three-letter sentence type such as RMC, GGA or DPT. Sentences starting with P are proprietary to one manufacturer.

Why do I see bad checksums?

One or two can be noise. Many usually mean a wiring or settings problem: the wrong baud rate (4800 for most instruments, 38400 for AIS), swapped A/B or +/− wires, or a long unshielded run near a noisy cable.

Which NMEA 2000 PGNs does a gateway make from NMEA 0183?

It depends on the gateway's conversion table. This decoder shows Yacht Devices' YDNG-03 table: for example RMC becomes PGNs 129025, 129026, 126992 and 127258, DPT becomes 128267, MWV becomes 130306, and AIS position reports become 129038 (Class A) or 129039 (Class B).