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.

Source: India Post reference implementationAlgorithm read on 17 November 2026

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

The table gives the exact sizes. Each level divides the side by four, so the side after level n is 36 / 4n degrees.

LevelCell side, degreesApprox. north-south size
19.0001001 km
22.250250 km
30.562562.5 km
40.140615.6 km
50.035163.9 km
60.008789977 m
70.002197244 m
80.000549361.1 m
90.000137315.3 m
100.000034333.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

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

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.

Advertisement
Advertisement