Click the "Select File" button above, and choose your ALG file.
You’ll see a preview, if available.
Click the "Convert file to..." button to extract text information.
Convert ALG to another file type
To convert your ALG file to another format, you need VisualG or other Developer software.
Convert a file to ALG
To convert other file formats to the "Algorithm Source Code" file type, you need software like VisualG or a similar tool.
About ALG files
The .ALG file extension primarily identifies source code files written in "Portugol," a structured pseudocode language used in VisualG and Portugol Studio to teach programming logic in Portuguese-speaking regions. These files contain textual algorithm definitions, variable declarations, and logic loops. A secondary but significant use of the .ALG format is by Bentley InRoads (now part of OpenRoads) for storing civil engineering alignment geometry data. Additionally, educational tools like AlgoBox use XML-based .ALG files for mathematical algorithms.
While .ALG files are critical for their specific environments, they pose significant accessibility challenges. VisualG files are essentially text but often require specific character encoding (ANSI/UTF-8) to display Portuguese accents correctly outside their native editor. Opening them in standard text editors can result in garbled characters. For engineering users, legacy InRoads .ALG files are proprietary geometry stores that modern CAD software like AutoCAD or ArcGIS cannot import directly, locking valuable alignment data inside an obsolete format. Educational users often struggle to share their algorithms with instructors who may not have the exact version of AlgoBox or VisualG installed.
Recommended Conversions:
For Education & Grading: Convert VisualG or AlgoBox files to PDF. This ensures the code structure, indentation, and flowcharts are preserved visually for printing or submission without requiring the instructor to install the software.
For Code Portability: Convert source code to plain TXT or RTF. This strips away proprietary metadata, allowing the logic to be viewed in universal editors like Notepad++ or VS Code.
For Civil Engineering: Convert InRoads geometry to LandXML or DXF. This makes the alignment data interoperable with modern BIM and CAD workflows.
Convert.Guru analyzes your ALG file, detects the exact format, and lets you read the text inside.
If you want to convert ALG file to XML, SHP, KML, KMZ, GPX, GEOJSON, TOPOJSON, TIF, TIFF, ECW, SID or IMG, you can use VisualG or similar software from the "Algorithm Source Code" category. In the File menu, look for Save As… or Export….
To convert LAZ, KMZ, DTM, CSV, DEM, PRJ, LAS, GPX, DSM, SHP, DBF or KML files to ALG, try VisualG or another comparable tool in the "Algorithm Source Code" category.
The ALG Converter Story
The history of Convert.Guru began over 25 years ago in California with Tom Simondi’s file-format database. A former contributor to Space Shuttle development and a software pioneer of the 1980s, Simondi established a trusted resource for file type analysis that was even referenced by Microsoft Windows XP. Today, we use modern technology to process and convert thousands of file formats while continually improving our ALG converter.