Encode Polyline

Encode a GeoJSON LineString into a compact Google-style polyline for maps and routing APIs.

Paste GeoJSON LineString

Accepts a LineString geometry or Feature. Use 5 decimals for classic Google polylines, or 6 for polyline6.

Need the other direction? Decode Polyline

Encoded polyline