Posted in

What file formats are used for CNC milling?

Hey there, if you’ve ever walked our CNC milling floor, you know we’re not just pushing buttons to cut metal or plastic—we’re speaking a secret language of files. Every design that makes it from a sketch on a client’s napkin to a finished part on their desk starts with a file that plays nice with our machines. Over the years, we’ve seen way too many good projects go sideways because someone picked the wrong format. So let’s break this down like we do with our new hires, no jargon overload, just the straight talk about what works for CNC milling. CNC Milling

First off, let’s get one thing straight: not all design files are created equal. When a client sends us something that’s just a JPEG or a PNG, we’re stuck turning a 2D picture into a 3D model, and that extra step adds time and room for errors. But before we jump into the actual CNC-specific formats, let’s talk about the ones that are the foundation—CAD files. CAD stands for Computer-Aided Design, and these are where the magic starts. We see a lot of SolidWorks files, and honestly, it’s our go-to for most projects. Why? Because SolidWorks uses parametric modeling, meaning if a client tweaks a dimension mid-project, we just adjust the parameter instead of redrawing the whole part. It’s flexible, it’s widely used, and almost every milling machine controller speaks SolidWorks natively (or we can import it without too many headaches). Then there’s Fusion 360, which is super popular with independent designers and startup teams. It’s cloud-based, so clients can share versions easily, and it’s got CAM tools built right in, which cuts down on extra steps. We’ve had a few small business clients swear by Fusion 360 for their custom parts, and it’s never let us down. Oh, and let’s not forget STEP files—those are the universal translators. If someone’s using Inventor or CATIA or some fancy niche CAD tool, a STEP file is like a common language. It’s not as editable as the native CAD files, but it’s solid, no missing geometry, no weird glitches when we import it. We’d take a STEP file over a hand-drawn sketch any day.

Now, the real meat and potatoes for CNC milling: CAM files. Because here’s the thing—your CAD model is just a blueprint. The CNC machine doesn’t know how to move from point A to point B to cut that part; that’s where CAM (Computer-Aided Manufacturing) comes in, and the files it spits out are what actually run the machine. The big one here is G-code. You’ve probably heard of it, even if you didn’t know. G-code is the language that every CNC mill on the planet understands. It’s a series of lines that tell the machine things like “move to XYZ coordinates,” “spindle on at 1000 RPM,” “cut this depth,” “feed rate 50 mm per minute.” Wait, hold on—there’s M-code too, right? Those are the companion commands: M03 for spindle forward, M08 for coolant on, M05 to stop the spindle. People often group them together as G-code, and that’s fine for everyday talk, but technically it’s a mix. The problem with G-code is that it’s super specific to each machine. A G-code file for our 3-axis mill might not work on a 5-axis machine, and vice versa. That’s why we always test the code with a simulation first—nothing worse than running a part and realizing the path is off by a millimeter.

Another CAM format we use a lot is NC files. NC stands for Numerical Control, and it’s basically the same as G-code but a little older, more basic. Back in the day, before fancy computers, machines used punched tapes with NC files. Now it’s digital, but it’s still simpler than G-code sometimes, good for straightforward 2D cuts or basic 3D parts. We use NC files for smaller, simpler projects where we don’t need all the extra G-code features. And then there’s CL files—Cutter Location files. These are the files that CAM software generates before it turns G-code, right before adding all the machine-specific tweaks. So a CL file tells you where the cutter goes, but not how the machine’s controller will execute that path. It’s a good middle step for debugging, especially with complex parts that have tight tolerances. We’ll often send a CL file back to a client if they want to adjust the cut path without us redoing the whole G-code.

Wait, what about other formats that people throw at us? Like STL files. Oh man, STLs are a double-edged sword. They’re super common for 3D printing, and a lot of designers use them to share 3D models. But for CNC milling, they’re not ideal. STLs are triangular meshes, not true CAD geometry—so if you zoom in, you’ll see all the tiny triangles, which can cause the mill to skip or have rough edges. We only use STLs for very rough cuts, or if the part doesn’t need super tight tolerances. If a client sends an STL for a precision part, we’ll first convert it back to a solid model, and that takes extra time. Not a dealbreaker, but worth mentioning so you know why we might ask for another format if you send an STL.

What about DXF and DWG? Those are 2D formats, mostly. DXF is AutoCAD’s interchange format, DWG is the native AutoCAD file. We get a lot of DXF files for 2D milling jobs—like cutting out a custom metal bracket or a sign. They work great for flat, simple parts because they’re vector-based, so lines are crisp, no pixelation. We’ll import a DXF straight into our CAM software, set the cut depth and feed rate, and go. DWG is similar, but it’s more for 2D drafting, sometimes has extra layers or dimensions that we can use. We steer clear of DWG for 3D parts, though—its 3D capabilities are limited compared to STEP or SolidWorks.

Let’s talk about what we actually prefer to get from clients, okay? Because this stuff saves everyone time and money. If you’ve got a native CAD file—SolidWorks, Fusion 360, Inventor, whatever—send that first. It’s the easiest for us to adjust if something doesn’t line up, and it means we don’t have to redo geometry. If your CAD tool is something niche that we don’t use, send a STEP file as a backup—no weird conversions, no missing features. For 2D jobs, DXF is perfect, just make sure all your lines are clean, no overlapping edges or stray points, because that can mess up the cut path. And skip the STL if you can, unless it’s a low-precision part. We’ve had clients send us PDFs of their designs, and while we can work from them, it’s way slower—we have to trace everything, which adds hours to the project. Pro tip: don’t send a photo of your design, send the actual digital file.

Wait, let’s throw in a quick story to make this real. A couple months back, we had a startup come to us with a part for a new drone. They sent us an STL, and when we imported it, the mesh had tiny holes all over the curved edges. We tried to fix it, but it took us 3 hours to get a solid model that worked, instead of the usual 15 minutes. By the time we were done, their delivery timeline got pushed back, and they were stressed. If they’d sent their Fusion 360 file, we would’ve cut that time down to minutes, and they would’ve had their parts on schedule. That’s why we’re big on telling people what works—no nonsense, just helping you avoid that frustration.

Another thing: if you’re not sure what format to use, just hit us up. We’ve been doing this for years, we can tell you exactly what to send. We don’t want you to overcomplicate it, and we definitely don’t want to miss a deadline because of a file mix-up.

Now, let’s cover the basics so you don’t feel lost. CNC milling is all about translating your design into a language the machine understands. CAD files are your blueprint, CAM files turn that blueprint into instructions, and G-code is what runs the mill. Some formats are universal, some are machine-specific, some are better for 2D and some for 3D. The key is to use the right one for your project, and send us the most complete, editable file you have.

At the end of the day, we’re here to make your CNC milling experience as smooth as possible. Whether you’re a small business owner needing a custom metal bracket, a maker with a one-off project, or a big company needing high-volume parts, we can work with whatever file format you’ve got (we’ve seen everything from old CATIA files to random SketchUp exports). If you’re ready to get your project rolling, just reach out to us to start the procurement conversation—we’ll walk you through every step, from file submission to finished part delivery, no hoops to jump through. We’re not just a CNC supplier; we’re here to help you get the parts you need, when you need them.

Magnesium Die Casting References:

  1. Chua, C. K., & Leong, K. F. (2014). 3D Printing and Additive Manufacturing: Principles and Applications (5th ed.). World Scientific.
  2. Groover, M. P. (2020). Fundamentals of Modern Manufacturing: Materials, Processes, and Systems (7th ed.). Wiley.
  3. Rogers, B., & Adams, R. (2018). CNC Programming for Beginners. CreateSpace Independent Publishing Platform.
  4. SolidWorks Corporation. (2021). SolidWorks 2021 Help Documentation. Dassault Systèmes.
  5. Autodesk. (2022). Fusion 360 CAM User Guide. Autodesk Inc.

Shenzhen Shunhaoda Technology Co., Ltd.
With abundant experience, we are one of the most professional CNC milling manufacturers and suppliers in China. If you’re going to buy bulk high quality CNC milling made in China, welcome to get free sample from our factory. Also, custom service is available.
Address: 902, Building A3, Tianrui Industrial Park, No. 35 Fuyuan 1st Road, Zhancheng Community, Fuhai Street, Bao’an District, Shenzhen
E-mail: sales@shdindustry.com
WebSite: https://www.shd-industry.com/