AGS to TXT Conversion Explained
Converting Geotechnical data files (.AGS) to plain text files (.TXT) changes how the data is accessed and read. The .AGS format is already a text-based file, but it uses a strict, complex schema defined by the Association of Geotechnical and Geoenvironmental Specialists. It stores multiple relational tables—such as borehole logs, lab tests, and site coordinates—stacked inside a single file.
When you convert .AGS to .TXT, you extract this structured data into a universal, unstructured format. People do this to view the raw data without expensive geotechnical software. You gain universal compatibility and easy searchability. However, you lose the specialized file association, data validation rules, and the ability to import the file directly into 3D modeling or borehole logging systems. The main trade-off is accessibility versus structural integrity. If you need to manipulate the data in columns and rows, converting to CSV or Excel is often a better choice than plain text.
Typical Tasks and Users
- Geotechnical Engineers: Reviewing raw site investigation data, such as sample depths or coordinates, on a computer that lacks specialized database software.
- Software Developers: Writing custom Python or MATLAB scripts to parse geotechnical data. A standard .TXT file is easier to feed into generic text-processing pipelines.
- Project Managers: Performing quick keyword searches (using Ctrl+F) to verify specific lab results or driller notes without loading a heavy database application.
- Archivists: Storing legacy project data in a universally readable format that will not become obsolete if specific geotechnical software is discontinued.
Software & Tool Support
You can open, edit, or convert these formats using a mix of specialized software and basic text tools:
- Text Editors: Because AGS is text-based, advanced editors like Notepad++ or basic tools like Microsoft Notepad and Apple TextEdit can open both .AGS and .TXT files directly.
- Geotechnical Software: Industry-standard platforms like Bentley OpenGround (formerly gINT) and RSLog by Rocscience natively export and validate AGS data.
- Programming Libraries: Developers often use Python libraries or MATLAB scripts to parse AGS files and output clean .TXT or CSV files.
Pros and Cons of the Conversion
Pros:
- Universal Compatibility: .TXT files open on any operating system, mobile device, or web browser without third-party software.
- Zero Cost: You do not need expensive geotechnical licenses to read the raw data.
- Transparency: The plain text format exposes the raw data blocks, making it easy to spot formatting errors or missing values.
Cons:
- Loss of Schema: Standard text editors do not understand the AGS data dictionary (like
PROJ, HOLE, or SAMP groups). The data appears as dense, hard-to-read blocks of comma-separated values. - Broken Workflows: Once saved as a standard .TXT file and modified, the file may fail strict AGS validation checks, making it impossible to import back into geotechnical databases.
- No Formatting: Plain text cannot display the data as visual borehole logs or graphs.
Conversion Difficulties & Why Convert.Guru
The main technical difficulty in this conversion is handling the stacked relational tables. An .AGS file contains multiple distinct data groups separated by specific headers. A naive conversion simply changes the file extension, leaving a chaotic wall of text that is difficult for humans to read. A proper conversion must parse the AGS data dictionary, handle the specific delimiters (quotes and commas), and output the text with clean spacing or tabulations.
Convert.Guru handles this exact pipeline. It reads the specific AGS schema (whether AGS 3.1 or AGS 4.x), parses the complex relational data structures, and extracts the text cleanly. This gives you a readable .TXT file without requiring you to write custom parsing scripts or buy specialized software.
AGS vs. TXT: What is the better choice?
| Feature | .AGS | .TXT |
| Data Structure | Strict relational schema (stacked tables) | Unstructured or loosely formatted text |
| Software Required | Geotechnical databases (OpenGround, RSLog) | Any basic text editor (Notepad, TextEdit) |
| Primary Use Case | Transferring data between drillers, labs, and engineers | Quick manual review, archiving, and basic scripting |
Which format should you choose?
Choose .AGS if you are actively working on a site investigation project. It is the mandatory standard for transferring data between contractors, laboratories, and engineering firms, and it is required for importing data into 3D geological models.
Choose .TXT if you only need to read the raw data, archive the text, or feed the information into a custom script. However, if your goal is to edit the data, sort columns, or create charts, you should avoid .TXT and convert the .AGS file to CSV or Excel (XLSX) instead.
Conclusion
Converting .AGS to .TXT makes sense when you need immediate, universal access to geotechnical data without relying on specialized database software. The biggest limitation to watch for is the loss of the strict AGS schema; modifying the resulting text file will likely break its compatibility with industry-standard geotechnical tools. For users who need a fast, accurate extraction of raw data from complex AGS groups, Convert.Guru provides a reliable and simple solution that handles the parsing automatically.
About the AGS to TXT Converter
Convert.Guru makes it fast and easy to convert Geotechnical data files to TXT online. The AGS to TXT converter runs entirely in your browser, so there’s no software to install and no account required. Powered by one of the industry’s largest and most trusted file format databases—maintained for more than 25 years—our technology reliably identifies AGS Data files even when they are damaged or incorrectly named. Uploaded files are automatically deleted after conversion to protect your privacy.