← All Tools

Google Polyline Encoder/Decoder

Encode lat/lng coordinate lists to Google's polyline format (RFC-style) or decode back to points

๐Ÿ“ Coordinates (lat,lng per line)

๐Ÿงต Encoded Polyline

๐Ÿ’ก Examples

Google's encoded polyline format packs a signed lat/lng delta into a base64-like ASCII string. Precision 5 is used by Google Maps Directions API; precision 6 is used by Mapbox (Valhalla, OSRM) for extra accuracy.

โœ“ Copied!