Coordinate System Converter — GPS WGS84 GCJ02 BD09
WGS84 · GCJ02 · BD09 — instant, private, 100% in your browser
Result
Latitude
39.9056033
Longitude
116.4136423
GCJ02 (China Mars — AutoNavi / Tencent)
A Complete Guide to Coordinate Conversion — WGS84, GCJ02, BD09
If you have ever placed a GPS coordinate on a map in China and seen your pin land 500 metres from where it should be, you have encountered a coordinate system mismatch. Different countries and platforms use different coordinate reference systems (CRS), and converting between them correctly is essential for mapping, GIS, and location-based applications. This Coordinate Converter handles all three major systems used in China and globally — WGS84, GCJ02, and BD09 — with conversions that run entirely in your browser.
WGS84 — The Global GPS Standard
WGS84 (World Geodetic System 1984, EPSG:4326) is the coordinate system used by GPS satellites worldwide. Google Maps outside mainland China, Apple Maps globally, OpenStreetMap, and virtually all international mapping services use WGS84 as their native coordinate system. If you record a GPS waypoint with your phone anywhere in the world outside China, you are recording WGS84 coordinates. WGS84 is geographically accurate — a latitude of 39.9042, longitude of 116.4074 in WGS84 points to the correct location on Earth's surface with no intentional offset. This makes WGS84 the universal interchange format for geospatial data.
GCJ02 — China's Encrypted Offset (Mars Coordinates)
GCJ02, sometimes called 'Mars coordinates' by developers, is mandated by Chinese national standard GB/T 17278 for all maps published in mainland China. It applies a non-linear cryptographic offset to WGS84 coordinates, typically shifting positions by 100 to 500 metres in a direction that varies based on location. The offset algorithm is deliberately obfuscated to prevent reverse-engineering. Mapping services that use GCJ02 include AutoNavi (Gaode Maps), Tencent Maps, and Apple Maps when viewed in China. If you are developing an app for the Chinese market or consuming data from these platforms, you must convert GCJ02 coordinates to WGS84 before storing them in a standard database — and convert back before displaying on Chinese maps.
BD09 — Baidu's Proprietary Second Layer
BD09 is Baidu Maps' proprietary coordinate system that adds an additional offset on top of GCJ02. This means converting WGS84 → BD09 requires two steps: WGS84 → GCJ02, then GCJ02 → BD09. The double offset pushes coordinates up to 700 metres from their true WGS84 position. Baidu Maps is one of China's most widely used mapping platforms, and the BD09-BD09LL specification is documented in the Baidu Maps LBSYUN developer SDK. The reverse conversion (BD09 → WGS84) is an approximation that is accurate to within 1-2 metres for coordinates inside mainland China. This converter uses open-source algorithms validated against the Baidu Maps API.
Plan astrophotography sessions with converted coordinates → Telescope FOV Calculator
When You Need This Converter
You need coordinate conversion whenever you mix data from different mapping ecosystems. Common scenarios include: (1) You are a developer integrating a Chinese mapping API (AutoNavi/Tencent/Baidu) and need to convert API responses to WGS84 for database storage. (2) You are a GIS analyst preparing map data for regulatory submission in China, which requires GCJ02 coordinates per GB/T 17278. (3) You are debugging a map display issue where pins appear offset — this is almost always a WGS84/GCJ02/BD09 mismatch. (4) You are using a GPS device in China that outputs WGS84 but needs to display the location on a Chinese map application. The converter handles all three systems bidirectionally: WGS84 to GCJ02, GCJ02 to BD09, and WGS84 to BD09. Outside mainland China, GCJ02 equals WGS84 with no offset applied, and the converter handles this edge case automatically.
Compute Local Sidereal Time from your converted GPS location → Sidereal Time Calculator
Why Do Coordinate Systems Differ?
WGS84 — The Global Standard
Used by GPS satellites, Google Maps (outside China), and most international mapping APIs. Coordinates are geographically accurate worldwide.
NGA — WGS84 SpecificationGCJ02 — China's Encrypted Offset
Mandated by Chinese regulations, GCJ02 applies a non-linear cryptographic offset to WGS84 coordinates. Used by AutoNavi (Gaode), Tencent Maps, and Apple Maps in China.
Wikipedia — GCJ-02 OriginBD09 — Baidu's Extra Layer
Baidu Maps adds an additional proprietary offset on top of GCJ02. Using WGS84 coordinates directly in Baidu APIs will result in visible map drift.
Baidu Maps Open PlatformPrivacy — Coordinates Never Leave Your Device
All conversions run entirely in your browser using open-source algorithms. No coordinates are sent to any server.
ISO 19111 Coordinate Systems StandardBased on the GCJ02 offset algorithm per China National Standard GB/T 17278 and the BD09 algorithm documented in Baidu Maps LBSYUN.
When Do You Need This Converter?
Integrating Chinese Mapping APIs
Developers using AutoNavi (Gaode), Tencent Maps, or Baidu Maps APIs receive GCJ02 or BD09 coordinates. Convert to WGS84 before storing in a GPS-agnostic database.
GIS Dataset Compliance
GIS engineers preparing map data for publication in China must supply GCJ02 coordinates per the GB/T 17278 national standard. Convert your WGS84 source data before submission.
Debugging Map Drift
If your map pin appears 100–700 m off the expected location in China, you are mixing coordinate systems. Use this converter to identify the correct offset for your target platform.
Frequently Asked Questions
What is the difference between WGS84 and GCJ02?
WGS84 is the global GPS standard. GCJ02 applies a government-mandated encryption offset required for maps published in China — this Coordinate System Converter handles all three systems. The offset is typically 100–500 metres.
Can I convert BD09 back to WGS84?
Yes. This Coordinate System Converter performs an approximate reverse calculation accurate to within 1–2 metres for coordinates inside mainland China.
Why does my pin appear in the wrong place on Baidu Maps?
You are likely using WGS84 coordinates in a context that expects BD09. Use this Coordinate System Converter before passing coordinates to the Baidu Maps API.
Is this tool accurate outside China?
Outside mainland China, GCJ02 = WGS84 (no offset is applied). BD09 is only used by Baidu and is relevant only in China. This Coordinate System Converter handles all edge cases automatically.
Why does my GPS show the wrong location on maps?
If you're in China or using a Chinese map app (Baidu, Amap), your GPS returns WGS84 coordinates but the map expects GCJ02 or BD09 — creating a 100–500 metre offset. This Coordinate Converter on fastool.io fixes that instantly: paste your coordinates, choose the conversion direction, and get the corrected values for your target map system.
Related Guides
You Might Also Like
All coordinate conversions run entirely in your browser. Input coordinates are never transmitted to any server. This tool uses WGS84 (EPSG:4326) and publicly documented transformation formulas from EPSG and OGC standards.