How to convert Shapefile, GeoJSON, KML, GPX and more in your browser (ogr2ogr online, no upload)
Published:
🌍

Need to convert a Shapefile to GeoJSON, KML to GPX, or between almost any GIS formats - online, free, and without handing your data to a server? GIS data is often confidential - survey plots, land boundaries, client sites - which makes “upload your file to convert it” services a bad idea. This converter is GDAL’s ogr2ogr compiled to WebAssembly: the conversion runs 100% inside your browser and your files are never uploaded.
Steps
- Open https://www.clearevo.com/geo/ (first use downloads the ~21 MB engine, cached after).
- Choose input file(s) - the common vector formats ogr2ogr reads: GeoJSON, GPX, KML/KMZ (KMZ is unzipped in the page first), GeoPackage, DXF, CSV, MapInfo, FlatGeobuf, GML… For a Shapefile, select the
.shp,.dbf,.shxand.prjtogether (the tool warns you if a sibling is missing). - Pick the output format: GeoJSON, GPX, KML, GeoPackage, CSV, SQLite/Spatialite, DXF or FlatGeobuf.
- Optional: type a target CRS (e.g.
EPSG:4326) to reproject; leave empty to keep the source CRS. - Convert & download - the converted file downloads straight from your browser’s memory.
Honest limits: inputs are capped at 300 MB (WebAssembly memory); multi-file outputs like Shapefile aren’t offered yet (single-file formats only). Errors from GDAL are shown in the log rather than crashing the tab - GPX output in particular requires GPX-compatible layers, so if it complains, convert to GeoJSON first and inspect.
Everything is client-side (Google Analytics for visit stats only - verify).
This tool is free software and open source: ykasidit/clearevo_online_tools - issues and pull requests welcome.
ต้องการแปลง Shapefile เป็น GeoJSON, KML เป็น GPX หรือแปลงระหว่างฟอร์แมต GIS แทบทุกแบบ - ออนไลน์ ฟรี และไม่ต้องส่งข้อมูลขึ้นเซิร์ฟเวอร์ของใคร? ข้อมูล GIS มักเป็นข้อมูลลับ - แปลงสำรวจ แนวเขตที่ดิน ตำแหน่งไซต์ของลูกค้า - บริการแบบ “อัปโหลดไฟล์ขึ้นมาแล้วเราแปลงให้” จึงไม่ใช่ทางเลือกที่ดี ตัวแปลงนี้คือ ogr2ogr ของ GDAL ที่คอมไพล์เป็น WebAssembly: การแปลงทำงาน 100% ในเบราว์เซอร์ของคุณ ไฟล์ไม่ถูกอัปโหลดไปไหนเลย
ขั้นตอน
- เปิด https://www.clearevo.com/geo/ (ครั้งแรกจะดาวน์โหลดเอนจินขนาดราว 21 MB หลังจากนั้นถูกแคชไว้)
- เลือกไฟล์อินพุต - รองรับฟอร์แมต vector ทั่วไปที่ ogr2ogr อ่านได้: GeoJSON, GPX, KML/KMZ (KMZ จะถูก unzip ในหน้าเว็บก่อน), GeoPackage, DXF, CSV, MapInfo, FlatGeobuf, GML… สำหรับ Shapefile ให้เลือกไฟล์
.shp,.dbf,.shxและ.prjพร้อมกันทั้งชุด (ถ้าไฟล์ประกอบตัวไหนขาดไป เครื่องมือจะเตือนให้) - เลือกฟอร์แมตปลายทาง: GeoJSON, GPX, KML, GeoPackage, CSV, SQLite/Spatialite, DXF หรือ FlatGeobuf
- ถ้าต้องการ reproject ให้พิมพ์ CRS ปลายทาง (เช่น
EPSG:4326) หากเว้นว่างจะคงระบบพิกัดเดิมของไฟล์ต้นทาง - Convert & download - ไฟล์ที่แปลงเสร็จจะดาวน์โหลดตรงจากหน่วยความจำของเบราว์เซอร์
ข้อจำกัดที่ขอบอกตรง ๆ: ไฟล์อินพุตจำกัดที่ 300 MB (ตามหน่วยความจำของ WebAssembly) และยังไม่รองรับเอาต์พุตแบบหลายไฟล์อย่าง Shapefile (มีให้เลือกเฉพาะฟอร์แมตไฟล์เดียว) ข้อผิดพลาดจาก GDAL จะแสดงใน log แทนที่จะทำให้แท็บพัง - โดยเฉพาะเอาต์พุต GPX ที่ต้องใช้เลเยอร์ที่เข้ากันได้กับ GPX ถ้าขึ้น error ให้ลองแปลงเป็น GeoJSON ก่อนแล้วเปิดตรวจดู
ทุกอย่างทำงานฝั่ง client ทั้งหมด (มีเพียง Google Analytics สำหรับนับสถิติผู้เข้าชมเท่านั้น - ตรวจสอบได้เอง)
เครื่องมือนี้เป็นซอฟต์แวร์เสรีและโอเพนซอร์ส: ykasidit/clearevo_online_tools - ยินดีรับ issue และ pull request ครับ
คำแปลภาษาไทยนี้มี AI ช่วยเรียบเรียง — หากพบจุดที่อ่านแล้วขัด แจ้งได้ในคอมเมนต์ครับ
Full disclosure: this post - and any code or tool it describes - was co-authored with Claude (Anthropic’s AI, via Claude Code). I directed, guided and reviewed. I don’t want to pretend otherwise.
Leave a Comment