Home / Conversion Guide
DD Plus Code

Convert Decimal Degrees to Open Location Code (Plus Code)

To encode DD to Plus Code: for each of 4 pairs, find the index of the coordinate within the current resolution step and map to the OLC alphabet (23456789CFGHJMPQRVWX). Then encode 2 grid characters and insert "+" after the 8th character.

DD to Plus Code Converter

DD Decimal Degrees

DMS Deg. Min. Sec.

DDM Deg. Decimal Min.

UTM Univ. Trans. Mercator

MGRS Military Grid

Geohash Base32

Plus Code Open Location Code

How to Convert DD to Plus Code: Step by Step

  1. 1 Normalize: add 90 to latitude (range 0–180), add 180 to longitude (range 0–360).
  2. 2 Pair 1: lat_index = floor(lat/20), lng_index = floor(lng/20). Encode each with OLC alphabet.
  3. 3 Pair 2: reduce ranges to 20° blocks, find index within 1° step.
  4. 4 Pairs 3 and 4: repeat at 0.05° and 0.0025° precision.
  5. 5 Grid chars: encode the remaining fraction in a 5-row × 4-column grid.
  6. 6 Insert "+" after the 8th character.

Worked Example

Input 48.858400, 2.294500

Latitude conversion:

Pairs encode to 8W4V5 | Grid → 9R

Longitude conversion:

Pairs encode to FW475V | result → 8FW4V75V+9R

Result:

8FW4V75V+9R

Why Convert DD to Plus Code?

Plus Codes are used by Google Maps and are useful for sharing locations in areas without addresses, or for creating short, memorable location codes.

Common Mistakes to Avoid

  • Using standard Base32 instead of OLC alphabet
  • Forgetting to normalize latitude/longitude
  • Inserting "+" at the wrong position