International · India · Location codes
DIGIPIN finder: coordinates to code and back.
Turn a latitude and longitude into the 10-character DIGIPIN that India Post defines, or decode a DIGIPIN into the cell it names. The arithmetic follows the open-source reference code and runs in your browser.
Short answer: A DIGIPIN is 10 characters from the set 2 3 4 5 6 7 8 9 C F J K L M P T. Each character picks one of 16 squares, ten times in a row, inside the box from 2.5° to 38.5° north and 63.5° to 99.5° east, which leaves a final cell of about 3.8 m. For example 13.11179621, 80.20264269 gives 4T396F42L7, the sample in India Post’s own code.
How a DIGIPIN is built
India Post publishes its DIGIPIN encoder and decoder as open-source JavaScript; the repository describes DIGIPIN as developed with IIT Hyderabad and NRSC, ISRO. The code starts from one rectangle: latitude 2.5 to 38.5 and longitude 63.5 to 99.5, a box 36 degrees on each side that contains India and its surroundings. It cuts that rectangle into a four-by-four grid of sixteen equal cells, finds the cell that holds your point, writes down that cell’s symbol, and then repeats the same cut inside the chosen cell. It does this ten times. The ten symbols, written one after another with no separator, are the DIGIPIN.
The sixteen symbols sit in a fixed layout. Reading the grid from north to south, left to right, the rows are F C 9 8, then J 3 2 7, then K 4 5 6, then L M P T. Because the symbol set leaves out every vowel and the digits 0 and 1, a DIGIPIN cannot spell a word and cannot confuse the letter O with a zero.
Position by position
- Character 1 picks one of sixteen 9-degree squares inside the starting box, so it already narrows an address to a region about 1,000 km on a side.
- Characters 2 to 5 narrow that to about 250 km, 62 km, 16 km and 3.9 km.
- Characters 6 to 10 narrow it to about 1 km, 244 m, 61 m, 15 m and finally 3.8 m.
The table gives the exact sizes. Each level divides the side by four, so the side after level n is 36 / 4n degrees.
| Level | Cell side, degrees | Approx. north-south size |
|---|---|---|
| 1 | 9.000 | 1001 km |
| 2 | 2.250 | 250 km |
| 3 | 0.5625 | 62.5 km |
| 4 | 0.1406 | 15.6 km |
| 5 | 0.03516 | 3.9 km |
| 6 | 0.008789 | 977 m |
| 7 | 0.002197 | 244 m |
| 8 | 0.0005493 | 61.1 m |
| 9 | 0.0001373 | 15.3 m |
| 10 | 0.00003433 | 3.8 m |
North-south distance is close to constant, at roughly 111.2 km per degree. East-west distance shrinks with the cosine of the latitude, so a level-10 cell at 28.6° north is about 3.8 m tall and 3.4 m wide. The result panel works that out for the latitude you enter. The sizes are for a spherical Earth, so treat them as approximate.
Worked example
India Post’s reference code gives the sample input 13.11179621, 80.20264269 and the sample output 4T396F42L7. Run through this page, that input does produce 4T396F42L7. Decoding 4T396F42L7 returns the centre of the cell, 13.111780, 80.202635, with edges at 13.111763 and 13.111797 north and 80.202618 and 80.202652 east. The original point sits inside those edges, but the centre is not the original point: it is off by up to half a cell, about 2 m. A second check: New Delhi at 28.6139, 77.2090 encodes to 39J438TJC7 and decodes to 28.613901, 77.208998.
What the decoder returns
The decoder first removes spaces and dashes and converts to upper case, then insists on exactly ten characters from the allowed set. India Post’s own decoder upper-cases its input and rejects spaces, hyphens and other separators; this page cleans separators first so a code copied with a dash still works. It then walks the ten symbols, narrowing the box each time, and returns the centre of the final cell with six decimals. The four edges are shown as well, because anything inside them shares the code.
Edge cases and common mistakes
- Outside the box. A point outside 2.5 to 38.5 north or 63.5 to 99.5 east cannot be encoded. The box is a rectangle, not India’s border, so it also covers parts of neighbouring countries and sea; a valid DIGIPIN does not prove a place is in India.
- Swapped values. Latitude goes first. Entering 80.2, 13.1 is a longitude-first mistake and will be rejected for being outside the latitude range.
- Points on a cell edge. A point exactly on the shared edge between two cells is assigned by the same floor and clamp rules as the reference code, so the northern and eastern limits of the whole box still encode.
- Precision loss. Rounding coordinates to four decimals moves a point by up to about 5 m, which can change the last character or two.
- The code is a cell, not an address. Two houses in the same 3.8 m cell share a DIGIPIN, and a building with several entrances has several.
Who this is for
Developers who need to test a DIGIPIN integration, people who were given a DIGIPIN and want to see where it points, and delivery or survey teams who want the exact cell edges. It is also a quick way to check that a DIGIPIN typed by hand has the right length and symbols.
What this does not cover
The page does not look up addresses, does not say who lives in a cell, and cannot confirm that India Post has assigned the code to a postal address. It reproduces the published arithmetic only. India Post may revise its reference code, so confirm against the repository linked below before you build anything that depends on exact output.
The local encoder adapts India Post’s open reference implementation under the Apache 2.0 licence.
Sources
- India Post, DIGIPIN reference implementation (INDIAPOST-gov/digipin on GitHub): grid, bounds, ten-level loop, character set and the sample 4T396F42L7 (src/digipin.js read on 17 November 2026).
- India Post, Department of Posts: publisher of the DIGIPIN system.
Frequently asked questions
What is a DIGIPIN?
A DIGIPIN is a 10-character location code defined by India Post. Each character selects one of 16 squares in a grid, ten times over, inside a box covering latitudes 2.5 to 38.5 and longitudes 63.5 to 99.5, so the code names a cell of about 3.8 m by 3.8 m.
What characters can a DIGIPIN contain?
Only these sixteen: 2, 3, 4, 5, 6, 7, 8, 9, C, F, J, K, L, M, P and T. There are no vowels, no 0 or 1, and no separators in the code.
How do I convert latitude and longitude to a DIGIPIN?
Enter the latitude and longitude in decimal degrees and press Convert. The tool applies India Post's published ten-level grid algorithm. For example 13.11179621, 80.20264269 gives 4T396F42L7.
How accurate is a DIGIPIN?
The final cell is 36 / 4^10 degrees on each side, which is about 3.8 m north-south. Decoding returns the cell centre, so the result can differ from the original point by up to about half a cell.
Why was my latitude or longitude rejected?
DIGIPIN only covers latitudes from 2.5 to 38.5 and longitudes from 63.5 to 99.5. A value outside that box, or latitude and longitude entered in the wrong order, cannot be encoded.
Does a valid DIGIPIN mean the place is in India?
No. The box is a rectangle that also takes in neighbouring land and sea, and this tool only checks the structure of the code, not who owns or lives at a location.
Is DIGIPIN the same as a PIN code or a Plus Code?
No. The six-digit postal PIN code covers a delivery area, a Plus Code is a different public grid system, and a DIGIPIN is a separate 10-character India Post code. They use different algorithms and are not interchangeable.
Is my location sent anywhere?
No. The conversion is plain arithmetic that runs in your browser. Nothing you type is stored or transmitted.
Published algorithm, not an address service
This page reproduces the arithmetic of India Post’s open-source DIGIPIN reference code. It does not look up addresses, confirm that a DIGIPIN has been issued to anyone, or replace the official India Post service. Everything you type stays in your browser. Confirm against the repository cited above before relying on exact output.