NC to AMF Converter for CNC Toolpaths
Upload a .nc or .cnc program and get an AMF file with one millimeter-labeled mesh: a thin tube along the cutter's centerline, not the finished part. Inch programs (G20) are not rescaled, so their AMF comes out 25.4 times too small.
Download Started!
How would you rate your experience with MiConvert?
What an NC to AMF conversion actually produces
An NC file is a CNC program: plain-text G-code that tells a mill, router, plasma table or laser where to move and how fast. It describes motion, not shape, so a slicer, mesh editor or any other program that reads AMF has nothing to display until that motion is turned into a surface. AMF is the XML-based Additive Manufacturing File Format standardized by ASTM and ISO as a richer successor to STL. The file you get here uses only its geometry part.
On our servers, a Python script reads your program line by line. Feed moves on G1, G2 and G3, plus bare coordinate lines, become the path. G0 rapids are skipped, while the plunge from clearance height into the first cut stays in. The path is marked in a voxel grid and wrapped in a closed surface with a fixed radius of 0.2 mm. That mesh is first written to a temporary GLB, and a second step rewrites it as AMF.
Your coordinates come through as written, with no re-centering. The AMF declares millimeters as its unit and holds a single object. The tube follows the cutter's centerline. The converter does not know the tool diameter, so the mesh is neither the machined part nor the removed material. Arcs keep only their end points: a quarter arc becomes a straight chord, and a full circle disappears. Cutter compensation, work offsets, tool changes, rotary A/B/C axes, drilling cycles, feed rates, and spindle or laser power are not interpreted. Coordinate-only lines after a G0 are drawn as cuts.
Resolution drops as jobs get bigger. The grid cell is the longest side divided by 250 and is never finer than 0.3 mm, so a 500 mm router sheet is traced on 2 mm cells. The AMF is written as uncompressed XML, which makes it much heavier than a binary mesh format.
This conversion suits someone whose printing or inspection software takes AMF and who wants to see a program's reach, entry depth and layout next to a fixture or stock model. It also suits someone keeping a visual record of a job in a format 3D tools can open. If your software also reads STL or 3MF, those carry the same mesh in a smaller file.
How to convert an NC program to AMF
- Check the extension. The .nc and .cnc extensions are accepted. Controller extensions such as .tap, .ngc, .mpf or .eia are refused, so rename those files to .nc before uploading.
- Open the file in a text editor and look for G20. An inch program keeps its inch numbers, and the AMF then labels them as millimeters, so plan to scale the result by 25.4 afterwards.
- If the first meaningful line is ST, the file is a DSTV steel-part file, not G-code. Send it to the NC to DXF page instead, because on this page it would come back as a meaningless blob.
- Drop your files: up to 10 at once, 25 on Plus or 50 on Pro. Without an account each file can be up to 50 MB, and a free account raises that to 100 MB.
- Wait while the mesh is built and then rewritten as AMF. Each of the two steps has its own 10-minute limit, which only very long programs reach.
- Download the .amf within about 4 hours, before it is deleted, and import it into your AMF-capable software.
What the NC to AMF converter does
- Skips explicit G0 rapids and keeps the plunge into each cut; coordinate-only lines after a G0 are still traced as cuts
- Keeps program coordinates as written, with no re-centering, so the mesh sits relative to your program zero
- Writes AMF 1.1 XML with a millimeter unit and one object, which you can inspect as plain text
- Builds a closed surface around every kept path and fixes normals before export
- Accepts .nc and .cnc files; a stray E word outside comments makes the file read as 3D-printer G-code, and its cuts are dropped
Video Tutorial
Learn how to convert NC to AMF format with this comprehensive guide! 📌 https://miconvert.com/en/nc-to-amf?utm_source=youtube&utm_medium=social&utm_campaign=nc-to-amf This video covers everything ab
NC to AMF questions
Does the AMF show the finished part or the material that was cut away?
No. It is a thin tube, 0.2 mm in radius, drawn along the path of the tool's center. The converter never reads your cutter diameter, so the mesh shows where the tool traveled, not the pocket it left. For the actual part shape, export it from the CAD model the program was made from.
Why does my AMF have no colors or materials?
The format can carry them, but this converter writes geometry only. You get one merged mesh with no colors, no materials and no separation by tool or operation. A CNC program does not hold that kind of data in a form we read, so nothing is added.
Why are holes and arcs missing or flattened?
G2 and G3 moves are drawn from their end points only, and the I, J and R values are not read. A quarter arc becomes a straight line, and a full circle that starts and ends at the same point disappears. If your CAM post processor can output arcs as short G1 segments, those shapes will come through.
What does the error No movement/extrusion commands found in G-Code file mean?
The parser found nothing it could trace. Common causes are a file with only G0 rapids, a file that is not G-code at all, or a binary file renamed to .nc. A CNC program with an E word on a non-comment line also triggers it: the parser treats the file as 3D-printer output and drops the cuts. Upload the posted program itself, make sure the cuts use G1, G2 or G3, and remove stray E words.
How do I convert an NC file to DXF?
Use our NC to DXF page. A DSTV .nc or .nc1 steel file becomes a layered 2D drawing with outer contours, holes and markings. A G-code .nc becomes a single 3D mesh entity whose header says meters while the numbers are millimeters. Laser and CAM software cannot use that mesh as 2D lines.
Why is the AMF file so large?
Every vertex and triangle is spelled out as uncompressed XML text. In our tests the AMF came out over three times the size of the same mesh saved as STL. Zipping it helps for transfer, or choose STL or 3MF if your software accepts them.
What happens to my file after conversion?
Your file travels over HTTPS and is converted on our servers. The upload is deleted as soon as the conversion finishes. The AMF can be downloaded for about 4 hours through an unguessable link, then it is deleted automatically. File names, sizes and outcomes are logged, and signed-in users also see the conversion in their account history.