NC to OBJ Converter for CNC Toolpaths
Get one Wavefront OBJ mesh that traces the cutting moves in your CNC .nc program, ready to import into Blender, MeshLab or most modelers. It follows the center of the tool, so it shows where the tool traveled, not the shape it cut.
Download Started!
How would you rate your experience with MiConvert?
Why convert an NC file to OBJ
CNC programs saved as .nc are plain text: a few setup codes followed by thousands of moves for a mill, router or laser. Modelers like Blender, 3ds Max or Rhino have no importer for them, because the file describes motion rather than shape. OBJ is among the oldest and most widely read mesh formats, so turning the program into OBJ gives you an object almost any 3D tool can place, render or measure.
On our servers, a Python parser reads the program top to bottom. It keeps lines with G1, G2 or G3 and lines that carry only X, Y or Z values, and leaves out lines that start a rapid with G0. Motion mode is not remembered between lines, so if your post writes G0 once and then bare coordinates, those rapids end up in the OBJ as part of the path. Absolute and incremental positioning (G90 and G91) and G92 resets are followed. The resulting route is voxelized, a closed surface is extracted with marching cubes, and the trimesh library writes it out as OBJ.
What survives: the XYZ route of the feed moves, with every G2 or G3 arc replaced by a straight chord to its end point, the plunge into the first cut, and the coordinates as programmed. A full circle written as a single arc disappears completely, so bores and round pockets can be missing. What is approximated: every move becomes a tube with a fixed 0.2 mm radius on a grid of at least 0.3 mm, growing to one 250th of the longest side, so a 500 mm job is sampled at 2 mm. What is not read: arc centers, inch mode, rotary axes, tool changes, cutter compensation, work offsets G54 to G59, canned cycles, feeds and spindle speed.
The download is a single .obj with no .mtl beside it, so there are no materials or colors to assign, and all operations sit in one merged mesh you cannot split by tool. OBJ stores no unit, so millimeter programs import as millimeter numbers, and a G20 program arrives with its inch values untouched; set the import scale to match.
Typical uses include checking a router program's reach against a fixture model in Blender, rendering a toolpath for a work instruction, or laying it over a stock model exported in the same coordinates to catch a wrong depth. It is neither a design model nor a 2D outline, so for anything you plan to machine again, go back to the CAD source.
How to convert NC to OBJ
- Open the .nc or .cnc file in a text editor and confirm it holds G1, G2 or G3 cutting moves rather than only G0 rapids.
- If your controller saves .tap, .ngc, .mpf or .eia files, make a copy renamed to .nc; those extensions are not accepted directly.
- Look for any E word on a non-comment line, for example from an extra axis, and remove it, because one E switches the reader to 3D-printer mode and your cuts are dropped.
- Upload the file. Guests and free accounts can queue up to 10 files per batch.
- Download the OBJ and import it with the scale set for millimeters or inches, depending on how the program was written.
NC to OBJ converter capabilities
- Single .obj output with normals fixed and no companion files to keep together
- Follows G90, G91 and G92 so incremental programs land in the right place
- Leaves out lines marked G0 and keeps feed moves and plunges. Coordinate-only lines that follow a G0 are still traced as cuts, so have your post-processor repeat G0 on every rapid line.
- Closed surface around every kept path instead of loose wireframe lines
- Program coordinates are not shifted, so the mesh aligns with other models exported in the same work coordinates as the program
- Per-file limits from 50 MB for guests up to 1 GB on Pro
Video Tutorial
NC → OBJ in seconds! Free online converter at MiConvert.com 🔗 https://miconvert.com/en/nc-to-obj?utm_source=youtube&utm_medium=social&utm_campaign=nc-to-obj Quick steps: Upload → Convert → Download
NC to OBJ questions
Why is there no .mtl file with my OBJ?
Because the mesh carries no material. The converter writes geometry only, so the OBJ comes in with your modeler's default material. Assign a color or material after import if you want to tell the path apart from other objects.
My program uses inches. Will the OBJ be the right size?
The numbers will match the program, but they are not converted. G20 is ignored, so a 2 by 1 inch square arrives as 2 by 1 units. Import with an inch scale, or scale by 25.4 to work in millimeters. The 0.2 tube radius and 0.3 grid are then applied to inch numbers, so the path looks noticeably thicker and coarser than it would from a millimeter program.
Why do I get 'No movement/extrusion commands found in G-Code file'?
This error means no usable cutting path was found. Check three things: the file has real G1, G2 or G3 moves and not just rapids; it is a text G-code program, not a renamed binary or some other text file; and no line outside a comment contains an E word, which would make the reader expect 3D-printer extrusion.
Does it handle 4-axis or 5-axis programs?
No. A, B and C words are ignored and only X, Y and Z are tracked, so a rotary or tilting-head program comes out as a distorted path. Tool changes, cutter compensation and work offsets are also skipped, so programs that rely on G54 to G59 for several fixtures may overlap at the program origin.
My file ends in .tap, .ngc or .mpf. Can I upload it?
Not under that name; those extensions are rejected as unsupported. They usually hold ordinary G-code, so renaming a copy to .nc is enough for the converter to read it.
Can I get a 2D DXF from my NC file instead?
Only for DSTV steel files. Do not upload a DSTV .nc here: on this page it is read as G-code and turns into a tiny meaningless mesh, yet the job still reports success. The NC to DXF converter turns DSTV .nc and .nc1 files into a layered 2D drawing. From a G-code program, it produces a single 3D mesh entity with a meters unit header, not lines or arcs a laser or CAM program can follow. For 2D cutting geometry, export DXF from your CAD or CAM software.
Is my program kept on your servers?
The uploaded file is deleted when the conversion ends, and the OBJ is held for download for up to 4 hours, after which it is deleted automatically. The link is random and works for anyone who has it until then, so share it with care. Uploads travel over HTTPS. We log file names and job details such as format and outcome, and signed-in users also get a history entry.