WKT to GeoJSON — via API
One HTTP call, no GDAL install, no servers. Pay-as-you-go credits with a free tier of 25 conversions per month.
Try it in the browser · Full API reference · Credit packs
Convert WKT to GeoJSON in your language
cURL
curl -X POST https://lat-lng.com/api/v1/convert \
-H "Authorization: Bearer $LATLNG_API_KEY" \
-F "file=@input.wkt" \
-F "from=wkt" \
-F "to=geojson" \
-F "validate=true"Python
import requests
resp = requests.post(
"https://lat-lng.com/api/v1/convert",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open("input.wkt", "rb")},
data={"from": "wkt", "to": "geojson", "validate": "true"},
)
job = resp.json()
print(job["output_url"], job["integrity"]["grade"])Node.js
import { LatLngClient } from "@lat-lng/sdk";
const client = new LatLngClient(process.env.LATLNG_API_KEY!);
const result = await client.convert("input.wkt", {
from: "wkt",
to: "geojson",
validate: true,
});
console.log(result.outputUrl, result.integrity?.grade);How credits work
1 credit per conversion for files up to 25 MB; +1 credit per additional started 25 MB; +1 credit with validate=true (integrity report included). The free tier includes 25 credits per month; credit packs start at €9 and never expire.
Rate & size limits
Free: 30 requests/min. Pro: 600 requests/min. Files up to 1 GB on every plan — larger files simply cost more credits.
Frequently asked questions
How do I convert WKT to GeoJSON programmatically?
POST your file to https://lat-lng.com/api/v1/convert with "to=geojson". You get back a signed download URL. Works from cURL, Python, Node, or any HTTP client — no GDAL or GIS libraries required.
What does it cost?
1 credit per conversion (files up to 25 MB; +1 credit per additional 25 MB). The free tier includes 25 credits per month; credit packs start at €9 for 500 and never expire.
Can I validate the output?
Yes — add "validate=true" (+1 credit) and the response includes an integrity report: coordinate-order checks, geometry validity, precision analysis, and a 0–100 score.
Is there an async mode for large files?
Yes — POST to /api/v1/convert/async (returns a job you can poll). The async endpoint writes GeoJSON, KML, GPX, and CSV; Shapefile is accepted as input, and Shapefile/WKT output are browser-only.