If you have ever opened an EDI document in a text editor, you probably know the feeling.
Technically, everything is there. The interchange. The functional groups. The transactions. The segments. All the business information. But reading it is another story. It is a complex text file full of element separators and data separators, escape characters, segment terminators, and so on.
An EDI message is designed to be exchanged between systems, not necessarily to provide a pleasant reading experience for developers.
Take a document containing something like this:
UNA:+.? 'UNB+UNOC:3+5412345000013:14+5498765000021:14+260129:1015+00000042'UNH+1+ORDERS:D:96A:UN'BGM+220+PO-2026-0042+9'DTM+137:20260129:102'NAD+BY+5412345000013::9'NAD+SU+5498765000021::9'LIN+1++4000862141404:SRS'QTY+21:48'PRI+AAA:12.50'LIN+2++4000862141411:SRS'QTY+21:12'FTX+AAI+++Deliver to dock 3?: ring the bell'UNS+S'CNT+2:2'UNT+17+1'UNZ+1+00000042'
But when troubleshooting a large interchange containing several documents and hundreds or thousands of segments, simply staring at the raw EDI isn’t particularly productive.
Sometimes you just want to know:
- Is this EDI document valid?
- What type of document am I looking at?
- How many transactions does the interchange contain?
- Which sender and receiver are involved?
- Where does a specific document begin and end?
- What information does a particular segment contain?
- What does this document actually represent from a human point of view?
Even for someone like me who is quite familiar with EDI and its structure, files sometimes come as a single line, so simply formatting them and splitting them into separate lines by segment is already a huge help in understanding the message.
That is exactly the experience we wanted to improve with the DevScope Integration Toolkit: EDI Formatter.
📝 One-Minute Brief
EDI documents are optimized for system-to-system communication, not human readability. The DevScope Integration Toolkit: EDI Formatter brings EDI validation, examples, interchange summaries, and several human-readable views directly into Visual Studio Code, helping integration developers understand and troubleshoot EDI documents without constantly decoding segments manually.
EDI is powerful, but it isn’t exactly developer-friendly
EDI has been around for decades and continues to play an essential role in B2B integration. Retail, logistics, manufacturing, healthcare, automotive, supply chain, and many other industries continue to exchange enormous volumes of business information using EDI:
- Purchase orders.
- Invoices.
- Shipping notifications.
- Order acknowledgements.
- And many other business documents.
There is nothing wrong with EDI as an interchange format. It does exactly what it was designed to do. It is a universal standard.
The challenge is the developer experience.
When we receive an EDI interchange during development or troubleshooting, what we often get is a compact stream of segments. Depending on how the file was produced, the entire interchange may even appear on a single line. Something perfectly valid for a machine can therefore be extremely inconvenient for a human.
Sometimes the first thing we need is simply to format the EDI
Before thinking about more advanced functionality, there is an extremely basic problem.
We need to be able to read the document.
Instead of this:
UNA:+.? 'UNB+UNOC:3+5412345000013:14+5498765000021:14+260129:1015+00000042'UNH+1+ORDERS:D:96A:UN'BGM+220+PO-2026-0042+9'DTM+137:20260129:102'NAD+BY+5412345000013::9'NAD+SU+5498765000021::9'LIN+1++4000862141404:SRS'QTY+21:48'PRI+AAA:12.50'LIN+2++4000862141411:SRS'QTY+21:12'FTX+AAI+++Deliver to dock 3?: ring the bell'UNS+S'CNT+2:2'UNT+17+1'UNZ+1+00000042'
we want something closer to:
UNA:+.? '
UNB+UNOC:3+5412345000013:14+5498765000021:14+260129:1015+00000042'
UNH+1+ORDERS:D:96A:UN'
BGM+220+PO-2026-0042+9'
DTM+137:20260129:102'
NAD+BY+5412345000013::9'
NAD+SU+5498765000021::9'
LIN+1++4000862141404:SRS'
QTY+21:48'
PRI+AAA:12.50'
LIN+2++4000862141411:SRS'
QTY+21:12'
FTX+AAI+++Deliver to dock 3?: ring the bell'
UNS+S'
CNT+2:2'
UNT+17+1'
UNZ+1+00000042'

Already, this makes troubleshooting substantially easier. But formatting alone doesn’t solve everything. We still need to understand what is inside the interchange.
And this is where the EDI Formatter becomes much more than a prettier text viewer.
Validate the EDI document
One of the first questions when receiving an EDI message is obvious:
Is this document actually valid?
A formatting problem, unexpected segment, invalid structure, or malformed interchange can prevent an EDI document from being processed successfully.
The EDI Formatter provides EDI validation directly from the development experience.

This makes validation a natural part of working with the document rather than something developers have to perform somewhere else.
Instead of looking manually through hundreds of segments trying to understand whether the structure is correct, we can validate the document and focus on the actual issue. And sometimes it will be able to suggest fixes:

Don’t have a sample? Use the EDI examples
Testing EDI tooling normally requires something obvious: EDI files.
However, developers don’t always have a suitable sample immediately available. And sometimes we don’t want to use a production message simply to test something. That is why having EDI examples available directly from the tool is useful.
Examples provide a quick way to:
- Explore the EDI Formatter;
- Understand different document structures;
- Test functionality;
- Learn how common EDI messages are organized;
- Experiment without using real business data.
This is particularly useful for developers who are starting to work with EDI. Instead of needing to search the web for an example, you can begin directly inside Visual Studio Code.
Understand the entire interchange at a glance
Formatting the raw EDI solves one problem. But imagine receiving a large interchange containing multiple transactions. What is actually inside it?
This is where the Interchange Summary becomes extremely useful.
Rather than forcing us to interpret the entire raw document, the summary gives us a higher-level understanding of the interchange.
The objective is simple:
Before diving into individual segments, understand what you are dealing with.
This becomes especially valuable during troubleshooting. Sometimes we don’t need to inspect every element. We first need to understand the structure and content of the interchange. Then we can decide where to investigate further.

Human-Readable View
This is probably my favorite part of the EDI Formatter. EDI is fundamentally structured business information.
But the raw representation hides that business meaning behind segments, qualifiers, codes, separators, and positions.
The Human-Readable View provides several ways to look at that information without forcing developers to mentally decode the entire EDI message.
The EDI Formatter provides different perspectives depending on how deeply we want to investigate. This creates a useful progression:
- Raw EDI → Dashboard → Resume → Document Detail → Segments
We can start broad and gradually drill into the document as required.
Dashboard
The Dashboard is the starting point. Instead of immediately dropping us into the details of every segment, it provides an overview of the EDI content.
Think of it as the high-level entry point into the interchange.

When troubleshooting, this is often exactly what I want first. Before inspecting segment 127 of a document, I want to understand: What am I looking at?
The Dashboard provides that initial perspective.
Resume
Sometimes we need more than the Dashboard but still don’t want to inspect every individual segment. That’s where the Resume view comes in.

The objective is to summarize the important information contained in the EDI document in a way that developers can consume much more quickly than reading the raw interchange.
Document Detail
When the summary isn’t enough, we can move into Document Detail. Now we can focus on the information associated with a specific EDI document. This is particularly useful when an interchange contains multiple business transactions.

Instead of navigating manually through an EDI plain text trying to determine exactly where one transaction ends and another starts, we can concentrate on the document we’re interested in.
This is basically transforming the EDI into a printable document. This makes the troubleshooting experience far more natural.
Segment View
And then, of course, there are times when we need to go all the way down. The problem may be inside a specific segment. Perhaps we need to inspect the UNH segment or LIN segments. At this point, seeing individual segments becomes essential.
The Segments view allows developers to inspect the EDI at this lower level while maintaining the context provided by the rest of the tool.

This is important because experienced EDI developers will absolutely still need access to the raw technical information.
The goal of a human-readable view isn’t to hide EDI. It is to make navigating and understanding it easier.
Keep EDI documents inside your development environment
Just like XML and JSON payloads, EDI messages can contain sensitive business information. Actually, EDI documents very often contain exactly the type of information organizations should handle carefully:
- Customer and supplier information;
- Purchase orders;
- Product information;
- Prices and quantities;
- Shipping information;
- Addresses;
- Invoice information;
- Business identifiers;
- Healthcare-related information;
- Commercially sensitive data.
When troubleshooting an EDI message, searching for an online EDI formatter or validator and pasting the entire document into a website is extremely convenient.
It may also be something we shouldn’t be doing with real business data.
Having the EDI Formatter available directly inside Visual Studio Code means we can keep that development and troubleshooting experience closer to where we’re already working.
For enterprise integration, that’s not a minor consideration.
Making EDI easier to understand inside Visual Studio Code
The goal of the DevScope Integration Toolkit isn’t to change how EDI works. And it certainly isn’t to hide the technical details EDI developers need. The objective is much simpler:
Make working with EDI documents a better developer experience.
Sometimes we need raw segments.
Sometimes we need validation.
Sometimes we need a quick overview.
Sometimes we need to understand one document inside a large interchange.
And sometimes we simply want someone to translate a wall of EDI into something we can actually read.
With the EDI Formatter, we can do those tasks directly inside Visual Studio Code through:
- EDI validation;
- EDI examples;
- Interchange Summary;
- Human-Readable Dashboard;
- Resume view;
- Document Detail;
- Segment-level inspection.
EDI is unlikely to disappear from enterprise integration any time soon.
So instead of pretending every integration is a beautiful REST API exchanging perfectly documented JSON, we might as well make working with real-world EDI a little easier.
And that’s exactly what the DevScope Integration Toolkit: EDI Formatter is designed to do.
Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars LEGO set for my son.