Skip to content

Instantly share code, notes, and snippets.

@shubhamjain
Last active November 17, 2023 05:11
Show Gist options
  • Save shubhamjain/35ed77154f577295707a to your computer and use it in GitHub Desktop.
Save shubhamjain/35ed77154f577295707a to your computer and use it in GitHub Desktop.
Indian States and Union Territories in JSON format
{
"AN":"Andaman and Nicobar Islands",
"AP":"Andhra Pradesh",
"AR":"Arunachal Pradesh",
"AS":"Assam",
"BR":"Bihar",
"CG":"Chandigarh",
"CH":"Chhattisgarh",
"DN":"Dadra and Nagar Haveli",
"DD":"Daman and Diu",
"DL":"Delhi",
"GA":"Goa",
"GJ":"Gujarat",
"HR":"Haryana",
"HP":"Himachal Pradesh",
"JK":"Jammu and Kashmir",
"JH":"Jharkhand",
"KA":"Karnataka",
"KL":"Kerala",
"LA":"Ladakh",
"LD":"Lakshadweep",
"MP":"Madhya Pradesh",
"MH":"Maharashtra",
"MN":"Manipur",
"ML":"Meghalaya",
"MZ":"Mizoram",
"NL":"Nagaland",
"OR":"Odisha",
"PY":"Puducherry",
"PB":"Punjab",
"RJ":"Rajasthan",
"SK":"Sikkim",
"TN":"Tamil Nadu",
"TS":"Telangana",
"TR":"Tripura",
"UP":"Uttar Pradesh",
"UK":"Uttarakhand",
"WB":"West Bengal"
}
@TusharSachde
Copy link

Please update them:

[
{
"key": "AN",
"name": "Andaman and Nicobar Islands"
},
{
"key": "AP",
"name": "Andhra Pradesh"
},
{
"key": "AR",
"name": "Arunachal Pradesh"
},
{
"key": "AS",
"name": "Assam"
},
{
"key": "BR",
"name": "Bihar"
},
{
"key": "CG",
"name": "Chandigarh"
},
{
"key": "CH",
"name": "Chhattisgarh"
},
{
"key": "DH",
"name": "Dadra and Nagar Haveli"
},
{
"key": "DD",
"name": "Daman and Diu"
},
{
"key": "DL",
"name": "Delhi"
},
{
"key": "GA",
"name": "Goa"
},
{
"key": "GJ",
"name": "Gujarat"
},
{
"key": "HR",
"name": "Haryana"
},
{
"key": "HP",
"name": "Himachal Pradesh"
},
{
"key": "JK",
"name": "Jammu and Kashmir"
},
{
"key": "JH",
"name": "Jharkhand"
},
{
"key": "KA",
"name": "Karnataka"
},
{
"key": "KL",
"name": "Kerala"
},
{
"key": "LD",
"name": "Lakshadweep"
},
{
"key": "MP",
"name": "Madhya Pradesh"
},
{
"key": "MH",
"name": "Maharashtra"
},
{
"key": "MN",
"name": "Manipur"
},
{
"key": "ML",
"name": "Meghalaya"
},
{
"key": "MZ",
"name": "Mizoram"
},
{
"key": "NL",
"name": "Nagaland"
},
{
"key": "OR",
"name": "Odisha"
},
{
"key": "PY",
"name": "Puducherry"
},
{
"key": "PB",
"name": "Punjab"
},
{
"key": "RJ",
"name": "Rajasthan"
},
{
"key": "SK",
"name": "Sikkim"
},
{
"key": "TN",
"name": "Tamil Nadu"
},
{
"key": "TS",
"name": "Telangana"
},
{
"key": "TR",
"name": "Tripura"
},
{
"key": "UK",
"name": "Uttar Pradesh"
},
{
"key": "UP",
"name": "Uttarakhand"
},
{
"key": "WB",
"name": "West Bengal"
}
]

@ys88844
Copy link

ys88844 commented Mar 24, 2017

Change this :
{
"key": "UK",
"name": "Uttar Pradesh"
},
{
"key": "UP",
"name": "Uttarakhand"
}

To this :

{
"key": "UP",
"name": "Uttar Pradesh"
},
{
"key": "UK",
"name": "Uttarakhand"
},

@Subhash9325
Copy link

where is lat and lon position noobs, fake coders??

@arindam-ganguly-rapidd
Copy link

Update to this:

[
{
"code": "AN",
"name": "Andaman and Nicobar Islands"
},
{
"code": "AP",
"name": "Andhra Pradesh"
},
{
"code": "AR",
"name": "Arunachal Pradesh"
},
{
"code": "AS",
"name": "Assam"
},
{
"code": "BR",
"name": "Bihar"
},
{
"code": "CG",
"name": "Chandigarh"
},
{
"code": "CH",
"name": "Chhattisgarh"
},
{
"code": "DH",
"name": "Dadra and Nagar Haveli"
},
{
"code": "DD",
"name": "Daman and Diu"
},
{
"code": "DL",
"name": "Delhi"
},
{
"code": "GA",
"name": "Goa"
},
{
"code": "GJ",
"name": "Gujarat"
},
{
"code": "HR",
"name": "Haryana"
},
{
"code": "HP",
"name": "Himachal Pradesh"
},
{
"code": "JK",
"name": "Jammu and Kashmir"
},
{
"code": "JH",
"name": "Jharkhand"
},
{
"code": "KA",
"name": "Karnataka"
},
{
"code": "KL",
"name": "Kerala"
},
{
"code": "LD",
"name": "Lakshadweep"
},
{
"code": "MP",
"name": "Madhya Pradesh"
},
{
"code": "MH",
"name": "Maharashtra"
},
{
"code": "MN",
"name": "Manipur"
},
{
"code": "ML",
"name": "Meghalaya"
},
{
"code": "MZ",
"name": "Mizoram"
},
{
"code": "NL",
"name": "Nagaland"
},
{
"code": "OR",
"name": "Odisha"
},
{
"code": "PY",
"name": "Puducherry"
},
{
"code": "PB",
"name": "Punjab"
},
{
"code": "RJ",
"name": "Rajasthan"
},
{
"code": "SK",
"name": "Sikkim"
},
{
"code": "TN",
"name": "Tamil Nadu"
},
{
"code": "TS",
"name": "Telangana"
},
{
"code": "TR",
"name": "Tripura"
},
{
"code": "UP",
"name": "Uttar Pradesh"
},
{
"code": "UK",
"name": "Uttarakhand"
},
{
"code": "WB",
"name": "West Bengal"
}
]

@bhattjidotcom
Copy link

[{"code": "AN","name": "Andaman and Nicobar Islands"},
{"code": "AP","name": "Andhra Pradesh"},
{"code": "AR","name": "Arunachal Pradesh"},
{"code": "AS","name": "Assam"},
{"code": "BR","name": "Bihar"},
{"code": "CG","name": "Chandigarh"},
{"code": "CH","name": "Chhattisgarh"},
{"code": "DH","name": "Dadra and Nagar Haveli"},
{"code": "DD","name": "Daman and Diu"},
{"code": "DL","name": "Delhi"},
{"code": "GA","name": "Goa"},
{"code": "GJ","name": "Gujarat"},
{"code": "HR","name": "Haryana"},
{"code": "HP","name": "Himachal Pradesh"},
{"code": "JK","name": "Jammu and Kashmir"},
{"code": "JH","name": "Jharkhand"},
{"code": "KA","name": "Karnataka"},
{"code": "KL","name": "Kerala"},
{"code": "LD","name": "Lakshadweep"},
{"code": "MP","name": "Madhya Pradesh"},
{"code": "MH","name": "Maharashtra"},
{"code": "MN","name": "Manipur"},
{"code": "ML","name": "Meghalaya"},
{"code": "MZ","name": "Mizoram"},
{"code": "NL","name": "Nagaland"},
{"code": "OR","name": "Odisha"},
{"code": "PY","name": "Puducherry"},
{"code": "PB","name": "Punjab"},
{"code": "RJ","name": "Rajasthan"},
{"code": "SK","name": "Sikkim"},
{"code": "TN","name": "Tamil Nadu"},
{"code": "TS","name": "Telangana"},
{"code": "TR","name": "Tripura"},
{"code": "UK","name": "Uttarakhand"},
{"code": "UP","name": "Uttar Pradesh"},
{"code": "WB","name": "West Bengal"}]

@jeen0404
Copy link

jeen0404 commented Feb 6, 2019


                                   state.csv 

,key,name
0,AN,Andaman and Nicobar Islands
1,AP,Andhra Pradesh
2,AR,Arunachal Pradesh
3,AS,Assam
4,BR,Bihar
5,CG,Chandigarh
6,CH,Chhattisgarh
7,DH,Dadra and Nagar Haveli
8,DD,Daman and Diu
9,DL,Delhi
10,GA,Goa
11,GJ,Gujarat
12,HR,Haryana
13,HP,Himachal Pradesh
14,JK,Jammu and Kashmir
15,JH,Jharkhand
16,KA,Karnataka
17,KL,Kerala
18,LD,Lakshadweep
19,MP,Madhya Pradesh
20,MH,Maharashtra
21,MN,Manipur
22,ML,Meghalaya
23,MZ,Mizoram
24,NL,Nagaland
25,OR,Odisha
26,PY,Puducherry
27,PB,Punjab
28,RJ,Rajasthan
29,SK,Sikkim
30,TN,Tamil Nadu
31,TS,Telangana
32,TR,Tripura
33,UK,Uttar Pradesh
34,UP,Uttarakhand
35,WB,West Bengal


                                                                                             state.html

key name
0 AN Andaman and Nicobar Islands
1 AP Andhra Pradesh
2 AR Arunachal Pradesh
3 AS Assam
4 BR Bihar
5 CG Chandigarh
6 CH Chhattisgarh
7 DH Dadra and Nagar Haveli
8 DD Daman and Diu
9 DL Delhi
10 GA Goa
11 GJ Gujarat
12 HR Haryana
13 HP Himachal Pradesh
14 JK Jammu and Kashmir
15 JH Jharkhand
16 KA Karnataka
17 KL Kerala
18 LD Lakshadweep
19 MP Madhya Pradesh
20 MH Maharashtra
21 MN Manipur
22 ML Meghalaya
23 MZ Mizoram
24 NL Nagaland
25 OR Odisha
26 PY Puducherry
27 PB Punjab
28 RJ Rajasthan
29 SK Sikkim
30 TN Tamil Nadu
31 TS Telangana
32 TR Tripura
33 UK Uttar Pradesh
34 UP Uttarakhand
35 WB West Bengal

                                                                                             state.json

{"Unnamed: 0":{"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23,"24":24,"25":25,"26":26,"27":27,"28":28,"29":29,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35},"key":{"0":"AN","1":"AP","2":"AR","3":"AS","4":"BR","5":"CG","6":"CH","7":"DH","8":"DD","9":"DL","10":"GA","11":"GJ","12":"HR","13":"HP","14":"JK","15":"JH","16":"KA","17":"KL","18":"LD","19":"MP","20":"MH","21":"MN","22":"ML","23":"MZ","24":"NL","25":"OR","26":"PY","27":"PB","28":"RJ","29":"SK","30":"TN","31":"TS","32":"TR","33":"UK","34":"UP","35":"WB"},"name":{"0":"Andaman and Nicobar Islands","1":"Andhra Pradesh","2":"Arunachal Pradesh","3":"Assam","4":"Bihar","5":"Chandigarh","6":"Chhattisgarh","7":"Dadra and Nagar Haveli","8":"Daman and Diu","9":"Delhi","10":"Goa","11":"Gujarat","12":"Haryana","13":"Himachal Pradesh","14":"Jammu and Kashmir","15":"Jharkhand","16":"Karnataka","17":"Kerala","18":"Lakshadweep","19":"Madhya Pradesh","20":"Maharashtra","21":"Manipur","22":"Meghalaya","23":"Mizoram","24":"Nagaland","25":"Odisha","26":"Puducherry","27":"Punjab","28":"Rajasthan","29":"Sikkim","30":"Tamil Nadu","31":"Telangana","32":"Tripura","33":"Uttar Pradesh","34":"Uttarakhand","35":"West Bengal"}}

@debu11
Copy link

debu11 commented Nov 18, 2019

Name-only Array 🇮🇳🇮🇳
Seperate Jammu, Kashmir and Ladakh

['Andaman and Nicobar Islands', 'Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chandigarh', 'Chhattisgarh', 'Dadra and Nagar Haveli', 'Daman and Diu', 'Delhi', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jammu', 'Jharkhand', 'Karnataka', 'Kashmir', 'Kerala', 'Ladakh', 'Lakshadweep', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Odisha', 'Puducherry', 'Punjab', 'Rajasthan', 'Sikkim', 'Tamil Nadu', 'Telangana', 'Tripura', 'Uttarakhand', 'Uttar Pradesh', 'West Bengal']

@shiva0704
Copy link

@devanshusehgal
Copy link

@shiva0704 There is no state called Jammu and Kashmir anymore

@shiva0704
Copy link

@shiva0704 There is no state called Jammu and Kashmir anymore

Jammu & Kashmir state has been split to 2 union territories - Jammu & Kashmir, Ladakh
not Jammu, Kashmir, Ladakh

@devanshusehgal
Copy link

@shiva0704 aw man you're right

@shubhamjain
Copy link
Author

shubhamjain commented Dec 26, 2019

@shiva0704 There is no state called Jammu and Kashmir anymore

Jammu & Kashmir state has been split to 2 union territories - Jammu & Kashmir, Ladakh
not Jammu, Kashmir, Ladakh

Thank you. Updated with your list.

@Dhaneshmonds
Copy link

@akashbijwe
Copy link

@Dhaneshmonds
Copy link

https://gist.github.com/Dhaneshmonds/1b0ca257b1c34e4842528dcb826ee880

Thank you @Dhaneshmonds, This is really helping us! 🍻

It's my pleasure

@HarshilLalka
Copy link

HarshilLalka commented Jul 16, 2020

@rishiktiwari
Copy link

In proper JSON format https://github.com/HarshilLalka/IndianState.JSON.git

Thank You, needed it very much :)

@anshcena
Copy link

Name-only Array 🇮🇳🇮🇳
Seperate Jammu, Kashmir and Ladakh

['Andaman and Nicobar Islands', 'Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chandigarh', 'Chhattisgarh', 'Dadra and Nagar Haveli', 'Daman and Diu', 'Delhi', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jammu', 'Jharkhand', 'Karnataka', 'Kashmir', 'Kerala', 'Ladakh', 'Lakshadweep', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Odisha', 'Puducherry', 'Punjab', 'Rajasthan', 'Sikkim', 'Tamil Nadu', 'Telangana', 'Tripura', 'Uttarakhand', 'Uttar Pradesh', 'West Bengal']

thanks! searching for this info only

@sahilofficial671
Copy link

@Priyankachaudhary2606
Copy link

The two union territories - "Dadra and Nagar Haveli" and "Daman and Diu" are merged and now known as "Dadra and Nagar Haveli and Daman and Diu". [source - Wikipedia]

@ABSphreak
Copy link

This thread has been really helpful.
Thanks @Dhaneshmonds and @shubhamjain.

@SBTopZZZ-LG
Copy link

@Elanza-48
Copy link

Dadra Nagar haveli and Daman diu single ut now, with code DNHDD

@Eunoia1729
Copy link

If any one is searching for mapping from the indian state codes to state names: https://gist.github.com/Eunoia1729/b929d16db7207eec999df8ca5ecff782

@Sohamjani-007
Copy link

Sohamjani-007 commented May 13, 2022

                                   state.csv 

,key,name 0,AN,Andaman and Nicobar Islands 1,AP,Andhra Pradesh 2,AR,Arunachal Pradesh 3,AS,Assam 4,BR,Bihar 5,CG,Chandigarh 6,CH,Chhattisgarh 7,DH,Dadra and Nagar Haveli 8,DD,Daman and Diu 9,DL,Delhi 10,GA,Goa 11,GJ,Gujarat 12,HR,Haryana 13,HP,Himachal Pradesh 14,JK,Jammu and Kashmir 15,JH,Jharkhand 16,KA,Karnataka 17,KL,Kerala 18,LD,Lakshadweep 19,MP,Madhya Pradesh 20,MH,Maharashtra 21,MN,Manipur 22,ML,Meghalaya 23,MZ,Mizoram 24,NL,Nagaland 25,OR,Odisha 26,PY,Puducherry 27,PB,Punjab 28,RJ,Rajasthan 29,SK,Sikkim 30,TN,Tamil Nadu 31,TS,Telangana 32,TR,Tripura 33,UP,Uttar Pradesh 34,UK,Uttarakhand 35,WB,West Bengal

                                                                                             state.html

key name
0 AN Andaman and Nicobar Islands
1 AP Andhra Pradesh
2 AR Arunachal Pradesh
3 AS Assam
4 BR Bihar
5 CG Chandigarh
6 CH Chhattisgarh
7 DH Dadra and Nagar Haveli
8 DD Daman and Diu
9 DL Delhi
10 GA Goa
11 GJ Gujarat
12 HR Haryana
13 HP Himachal Pradesh
14 JK Jammu and Kashmir
15 JH Jharkhand
16 KA Karnataka
17 KL Kerala
18 LD Lakshadweep
19 MP Madhya Pradesh
20 MH Maharashtra
21 MN Manipur
22 ML Meghalaya
23 MZ Mizoram
24 NL Nagaland
25 OR Odisha
26 PY Puducherry
27 PB Punjab
28 RJ Rajasthan
29 SK Sikkim
30 TN Tamil Nadu
31 TS Telangana
32 TR Tripura
33 UP Uttar Pradesh
34 UK Uttarakhand
35 WB West Bengal

                                                                                             state.json

{"Unnamed: 0":{"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23,"24":24,"25":25,"26":26,"27":27,"28":28,"29":29,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35},"key":{"0":"AN","1":"AP","2":"AR","3":"AS","4":"BR","5":"CG","6":"CH","7":"DH","8":"DD","9":"DL","10":"GA","11":"GJ","12":"HR","13":"HP","14":"JK","15":"JH","16":"KA","17":"KL","18":"LD","19":"MP","20":"MH","21":"MN","22":"ML","23":"MZ","24":"NL","25":"OR","26":"PY","27":"PB","28":"RJ","29":"SK","30":"TN","31":"TS","32":"TR","33":"UP","34":"UK","35":"WB"},"name":{"0":"Andaman and Nicobar Islands","1":"Andhra Pradesh","2":"Arunachal Pradesh","3":"Assam","4":"Bihar","5":"Chandigarh","6":"Chhattisgarh","7":"Dadra and Nagar Haveli","8":"Daman and Diu","9":"Delhi","10":"Goa","11":"Gujarat","12":"Haryana","13":"Himachal Pradesh","14":"Jammu and Kashmir","15":"Jharkhand","16":"Karnataka","17":"Kerala","18":"Lakshadweep","19":"Madhya Pradesh","20":"Maharashtra","21":"Manipur","22":"Meghalaya","23":"Mizoram","24":"Nagaland","25":"Odisha","26":"Puducherry","27":"Punjab","28":"Rajasthan","29":"Sikkim","30":"Tamil Nadu","31":"Telangana","32":"Tripura","33":"Uttar Pradesh","34":"Uttarakhand","35":"West Bengal"}}

Here, I have corrected the UP and UK for Uttar Pradesh and Uttarakhand respectively

@abhishekraje30
Copy link

[
{
"value":"AN",
"label":"Andaman and Nicobar Islands"
},
{
"value":"AP",
"label":"Andhra Pradesh"
},
{
"value":"AR",
"label":"Arunachal Pradesh"
},
{
"value":"AS",
"label":"Assam"
},
{
"value":"BR",
"label":"Bihar"
},
{
"value":"CG",
"label":"Chandigarh"
},
{
"value":"CH",
"label":"Chhattisgarh"
},
{
"value":"DH",
"label":"Dadra and Nagar Haveli"
},
{
"value":"DD",
"label":"Daman and Diu"
},
{
"value":"DL",
"label":"Delhi"
},
{
"value":"GA",
"label":"Goa"
},
{
"value":"GJ",
"label":"Gujarat"
},
{
"value":"HR",
"label":"Haryana"
},
{
"value":"HP",
"label":"Himachal Pradesh"
},
{
"value":"JK",
"label":"Jammu and Kashmir"
},
{
"value":"JH",
"label":"Jharkhand"
},
{
"value":"KA",
"label":"Karnataka"
},
{
"value":"KL",
"label":"Kerala"
},
{
"value":"LD",
"label":"Lakshadweep"
},
{
"value":"MP",
"label":"Madhya Pradesh"
},
{
"value":"MH",
"label":"Maharashtra"
},
{
"value":"MN",
"label":"Manipur"
},
{
"value":"ML",
"label":"Meghalaya"
},
{
"value":"MZ",
"label":"Mizoram"
},
{
"value":"NL",
"label":"Nagaland"
},
{
"value":"OR",
"label":"Odisha"
},
{
"value":"PY",
"label":"Puducherry"
},
{
"value":"PB",
"label":"Punjab"
},
{
"value":"RJ",
"label":"Rajasthan"
},
{
"value":"SK",
"label":"Sikkim"
},
{
"value":"TN",
"label":"Tamil Nadu"
},
{
"value":"TS",
"label":"Telangana"
},
{
"value":"TR",
"label":"Tripura"
},
{
"value":"UK",
"label":"Uttarakhand"
},
{
"value":"UP",
"label":"Uttar Pradesh"
},
{
"value":"WB",
"label":"West Bengal"
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment