X12 Parser
X12 is a standard for electronic data interchange (EDI) commonly used to exchange healthcare information between providers and payers. The standard is published by the American National Standards Institute (ANSI) and is used by many organizations in the US and around the world.
I've created this tool to make it easier to inspect and debug X12 messages. The tool parses X12 messages and displays them in a human-readable format. It also allows you to edit X12 messages and see the changes in real-time.
X12 message
1
ISA*00* *00* *14*592776002 *14*659928684 *211025*1836*!*00501*000026003*0*P*:~2
GS*HP*592776002*659928684*20220101*183633*1*X*005010X221A1~3
ST*835*278702~4
BPR*I*0*C*NON************20211025~5
TRN*1*214_DENIED_278702*1953893400~6
REF*F2*ACME 2021~7
DTM*405*20211025~8
N1*PR*ACME HEALTH~9
N3*1009 THINK PL~10
N4*MORRISVILLE*NC*27560~12
PER*BL*ACME SUPPORT*TE*2133511335~13
N1*PE*ACME H*XX*1981556764~14
REF*TJ*951716914~15
LX*1~16
CLP*12173547800101577350*1*186*0**HM*30199891*11*1~17
NM1*QC*1*LASTNAME*FIRSTNAME****MI*7354780~18
REF*F8*30199890~19
DTM*232*20220103~20
DTM*233*20220103~21
SVC*HC:90840*186*0**0**75~22
DTM*472*20220103~23
CAS*CO*272*186~24
REF*BB*P23938~25
SE*23*278702~26
GE*1*1~27
IEA*1*000026003~Parsed X12
1
{2
"header": [3
"00",4
"",5
"00",6
"",7
"14",8
"592776002",9
"14",10
"659928684",11
"211025",12
"1836",13
"!",14
"00501",15
"26003",16
"0",17
"P",18
":"19
],20
"options": {21
"elementDelimiter": "*",22
"endOfLine": "\n",23
"format": true,24
"segmentTerminator": "~",25
"subElementDelimiter": ":",26
"repetitionDelimiter": "!",27
"segmentHeaders": [28
{29
"tag": "GS",30
"trailer": "GE",31
"layout": {32
"GS01": 2,33
"GS02": 15,34
"GS02_MIN": 2,35
"GS03": 15,36
"GS03_MIN": 2,37
"GS04": 8,38
"GS05": 8,39
"GS05_MIN": 4,40
"GS06": 9,41
"GS06_MIN": 1,42
"GS07": 2,43
"GS07_MIN": 1,44
"GS08": 12,45
"GS08_MIN": 1,46
"COUNT": 8,47
"PADDING": false48
}49
},50
{51
"tag": "ISA",52
"trailer": "IEA",53
"layout": {54
"ISA01": 2,55
"ISA02": 10,56
"ISA03": 2,57
"ISA04": 10,58
"ISA05": 2,59
"ISA06": 15,60
"ISA07": 2,61
"ISA08": 15,62
"ISA09": 6,63
"ISA10": 4,64
"ISA11": 1,65
"ISA12": 5,66
"ISA13": 9,67
"ISA14": 1,68
"ISA15": 1,69
"ISA16": 1,70
"COUNT": 16,71
"PADDING": true72
}73
},74
{75
"tag": "ST",76
"trailer": "SE",77
"layout": {78
"ST01": 3,79
"ST02": 9,80
"ST02_MIN": 4,81
"ST03": 35,82
"ST03_MIN": 1,83
"COUNT": 3,84
"COUNT_MIN": 2,85
"PADDING": false86
}87
}88
],89
"txEngine": "internal"90
},91
"functionalGroups": [92
{93
"header": [94
"HP",95
"592776002",96
"659928684",97
"20220101",98
"183633",99
"1",100
"X",101
"005010X221A1"102
],103
"transactions": [104
{105
"header": [106
"835",107
"278702"108
],109
"segments": [110
{111
"tag": "BPR",112
"elements": [113
"I",114
"0",115
"C",116
"NON",117
"",118
"",119
"",120
"",121
"",122
"",123
"",124
"",125
"",126
"",127
"",128
"20211025"129
]130
},131
{132
"tag": "TRN",133
"elements": [134
"1",135
"214_DENIED_278702",136
"1953893400"137
]138
},139
{140
"tag": "REF",141
"elements": [142
"F2",143
"ACME 2021"144
]145
},146
{147
"tag": "DTM",148
"elements": [149
"405",150
"20211025"151
]152
},153
{154
"tag": "N1",155
"elements": [156
"PR",157
"ACME HEALTH"158
]159
},160
{161
"tag": "N3",162
"elements": [163
"1009 THINK PL"164
]165
},166
{167
"tag": "N4",168
"elements": [169
"MORRISVILLE",170
"NC",171
"27560"172
]173
},174
{175
"tag": "PER",176
"elements": [177
"CX",178
"FIRST LAST",179
"TE",180
"2137384600",181
"EM",183
]184
},185
{186
"tag": "PER",187
"elements": [188
"BL",189
"ACME SUPPORT",190
"TE",191
"2133511335"192
]193
},194
{195
"tag": "N1",196
"elements": [197
"PE",198
"ACME H",199
"XX",200
"1981556764"201
]202
},203
{204
"tag": "REF",205
"elements": [206
"TJ",207
"951716914"208
]209
},210
{211
"tag": "LX",212
"elements": [213
"1"214
]215
},216
{217
"tag": "CLP",218
"elements": [219
"12173547800101577350",220
"1",221
"186",222
"0",223
"",224
"HM",225
"30199891",226
"11",227
"1"228
]229
},230
{231
"tag": "NM1",232
"elements": [233
"QC",234
"1",235
"LASTNAME",236
"FIRSTNAME",237
"",238
"",239
"",240
"MI",241
"7354780"242
]243
},244
{245
"tag": "REF",246
"elements": [247
"F8",248
"30199890"249
]250
},251
{252
"tag": "DTM",253
"elements": [254
"232",255
"20220103"256
]257
},258
{259
"tag": "DTM",260
"elements": [261
"233",262
"20220103"263
]264
},265
{266
"tag": "SVC",267
"elements": [268
"HC:90840",269
"186",270
"0",271
"",272
"0",273
"",274
"75"275
]276
},277
{278
"tag": "DTM",279
"elements": [280
"472",281
"20220103"282
]283
},284
{285
"tag": "CAS",286
"elements": [287
"CO",288
"272",289
"186"290
]291
},292
{293
"tag": "REF",294
"elements": [295
"BB",296
"P23938"297
]298
}299
]300
}301
]302
}303
]304
}