Coordinate Converter — WGS84, GCJ-02, BD-09

Convert coordinates between WGS84, GCJ-02 (Mars Coordinates), and BD-09 (Baidu) systems. Free online Coordinate Converter for GPS, Amap, Tencent Maps, and Baidu Maps.

990.6K usesUpdated · 2026-04-29Runs locally · zero upload

How to Use Coordinate Converter

The Coordinate Converter lets you transform geographic coordinates between three systems used in China and globally. Enter the latitude and longitude, select the source coordinate system (From) and the target system (To), then click Convert.

The result shows the converted coordinates to 6 decimal places. You can also click the ⇄ Swap button to quickly reverse the conversion direction without re-entering values.

Supported conversions:

  • WGS84 ↔ GCJ-02
  • GCJ-02 ↔ BD-09
  • WGS84 ↔ BD-09

Formula & Theory — Coordinate Converter

The Coordinate Converter implements the standard open-source GCJ-02 offset algorithm. The offset is a nonlinear function of latitude and longitude, computed using trigonometric series on the Krasovsky ellipsoid ($a = 6{,}378{,}245$ m, $ee = 0.00669342$).

WGS84 → GCJ-02: Compute latitude offset $\Delta\phi$ and longitude offset $\Delta\lambda$ from the coordinates, then add them to the original values. The reverse (GCJ-02 → WGS84) uses a first-order approximation: $\text{WGS84} \approx 2 \times \text{GCJ-02_input} - \text{GCJ-02}(\text{GCJ-02_input})$.

GCJ-02 → BD-09: Apply a fixed polar coordinate rotation and scale shift ($+0.006° lat$, $+0.0065° lon$ approximately). The reverse undoes this shift.

All conversions return 6 decimal places, giving sub-meter precision for practical use.

Use Cases for Coordinate Converter

The Coordinate Converter is essential for anyone working with Chinese maps and GPS data:

  • Map Integration in China — If you collect GPS tracks (WGS84) and need to display them on Amap or Tencent Maps (GCJ-02), the Coordinate Converter corrects the systematic offset so markers align with roads and buildings.
  • Baidu Maps Development — Apps that use Baidu Maps API require BD-09 coordinates. Converting from WGS84 or GCJ-02 is necessary to avoid location drift.
  • Data Migration — Migrating location data between map providers (e.g., from Baidu to Amap) requires converting between BD-09 and GCJ-02. The Coordinate Converter handles this in one step.
  • Mobile App Testing — QA engineers can use the coordinate converter to verify that location pins render correctly across different map SDKs.
  • Geographic Research — Researchers analyzing location data from Chinese social media or apps often receive GCJ-02 coordinates that must be converted to WGS84 for global analysis tools.

Frequently asked questions about Coordinate Converter — WGS84, GCJ-02, BD-09

What is the difference between WGS84, GCJ-02, and BD-09?

WGS84 is the global GPS standard. GCJ-02 (also called Mars Coordinates) adds an encrypted offset applied to maps in mainland China — used by Amap and Tencent Maps. BD-09 adds a further offset on top of GCJ-02, used exclusively by Baidu Maps.

Why do coordinates look wrong when I paste GPS coordinates into Baidu Maps?

GPS outputs WGS84 coordinates. Baidu Maps uses BD-09, which includes a deliberate offset. The Coordinate Converter translates WGS84 → BD-09 so your pin lands in the correct location.

Does this converter work for locations outside China?

For locations outside mainland China, GCJ-02 and BD-09 offsets are not applied — the output equals the input. The converter will warn you when this is the case.

How accurate is the conversion?

The GCJ-02 offset algorithm is approximate by design (the exact algorithm is classified). Typical accuracy is within 1–5 meters, sufficient for most mapping and navigation use cases.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.