TechnSols
Advertisement

G-Code Toolpath Visualizer

Visualize G-code online free with G-Code Toolpath Visualizer. Path, depth and cutting time as PNG and TXT, no install or sign-up needed.

Be the first to rate this tool

Press Visualize Toolpath to draw the built in sample program, or paste or load your own G-code first.

What Is G-Code Toolpath Visualizer?

G-Code Toolpath Visualizer is a free online tool by TechnSols that draws a CNC toolpath from a G-code program, so you can see what the machine will do before it cuts anything. It reads the moves in order, draws rapids as dashed grey lines and cutting moves coloured by depth, and reports the cutting length, the rapid length, the lowest and highest Z, and the estimated time at the programmed feed. The toolpath is also saved as a PNG image, and the stats are saved as a text file.

Advertisement

G-code is the plain text language that CNC machines and 3D printers follow, one move per line, and a program that looks right in a text editor can still cut the wrong shape, plunge too deep, or waste an hour on rapids. Reading the numbers by eye is slow and easy to get wrong, so a picture of the path is the fastest check. This visualizer draws that picture in the browser, with no install and no account. If the job is a print rather than a cut, the 3D Print Time tool estimates how long the print takes.

Everything runs in your browser, and no file is uploaded anywhere. The built in sample cuts a 50 by 50 mm square outline, then a clockwise semicircle, at a depth of 1 mm, so the tool works with one click and no files at all, and your own programs stay on your own computer when you load them.

How To Use G-Code Toolpath Visualizer?

Using G-Code Toolpath Visualizer takes about a minute, with no software to install and no account to make. Press Visualize Toolpath to draw the built in sample, or paste or load your own G-code first. If the part size needs checking before the program runs, the STL Scale Tool checks the size of a 3D model the same way.

Step 1: Load The Sample Program Or Your Own File

Press Visualize Toolpath to draw the built in sample at once. The sample starts at Z 5, plunges to Z minus 1 at a feed of 100, cuts the 50 by 50 square at a feed of 200, then cuts a clockwise semicircle of radius 25 back to the start, and returns to Z 5. To check your own program instead, paste the G-code into the box or choose a file in .gcode, .gco, .nc, .ngc, .tap or .txt form. The program must be 100 MB or smaller and no longer than 200000 lines.

Step 2: Read The Drawing And The Stats

The canvas draws the toolpath in program order, with rapids dashed grey and cutting moves coloured from green at the shallow end to blue at the deep end, so a deep pass stands out at once. Read the stats list under the canvas: it states the cutting length, the rapid length, the lowest and highest Z, the estimated time, the move count, and how many lines were skipped. The sample reads 284.54 mm of cutting, 11.00 mm of rapids, Z from minus 1.00 to 5.00 mm, and 87.82 seconds.

Step 3: Download The Toolpath And The Stats

Press Download on a result row to save the PNG image of the toolpath, which is 640 by 480 pixels, or the text file with the same stats, which you can keep with the job or send to the operator. With 2 outputs, Download all files saves both at once.

The whole job is three steps, and you can load a different program and draw it again as often as needed. If the program came from a PDF drawing, the PDF To SVG tool converts the drawing first.

Why Check A Toolpath Before Cutting?

A CNC machine follows the program exactly, including every mistake in it, and a mistake is only found when the cutter is already in the material. Checking the path on screen first is the cheapest insurance in the workshop, because it costs nothing and takes a minute. When a program needs its paths checked as vectors first, the SVG Path Visualizer draws any SVG path the same way.

Wrong Depths Are Easy To Miss

A Z value that is 10 mm too deep looks like any other number in a text editor, and the machine will happily cut it. In this viewer the depth is a colour, so a pass that goes deeper than the rest shows up as a darker line at once. When the part size needs a second look, the STL Dimension Viewer shows the size of a 3D model the same way.

Rapids Show Where Time Goes

Rapid moves do no cutting, but they still take time, and a program that rapids across the whole table between every pass is slow for no reason. Drawing rapids as dashed grey lines makes them visible, so a program with too much air cutting is obvious before it runs.

Arcs And Feed Rates Are Checked Too

A G2 or G3 arc with the wrong centre draws a curve in the wrong place, and a feed rate that is too high for the material wears the tool out fast. This visualizer reads arcs by their I and J centres or by their R radius, and it times every move at its own feed rate, so both kinds of mistake show up in the drawing and in the estimated time.

What Can You Do With G-Code Toolpath Visualizer?

G-Code Toolpath Visualizer fits any job where a G-code program must be checked before it reaches the machine. These are the jobs it handles best, from a first look at a CAM output to a last check on the shop floor.

Check A New CAM Program

A CAM program fresh from the post processor is the most common thing to check here. Load it, read the extents and the min Z, and confirm the shape matches the part. If the same job needs a PDF copy of its drawing first, the DXF To PDF tool makes one you can print.

Find Why A Job Ran Too Long

A job that took twice as long as planned usually has too many rapids, too many small moves, or a feed rate set too low. The stats list splits the length into cutting and rapids and times each at its feed, so the slow part of the program is named in numbers, not guessed at.

Teach G-Code To A Beginner

G-code is hard to learn from numbers alone, because a list of coordinates does not look like a shape. Pasting a short program here and watching the path appear shows what G0, G1, G2 and G3 each do, and changing one number shows how the drawing changes, which is the fastest way to learn the language.

Every job that starts with a G-code program ends with a toolpath that has been seen, and this tool does the seeing in the browser. That is the whole job, and it takes less than a minute for any program.

Advertisement

Quality And Settings

Five settings shape the toolpath view, and each one is simple to set.

  • Sample program: a 50 by 50 mm square outline plus a clockwise semicircle of radius 25, at a depth of 1 mm.
  • G-code file: .gcode, .gco, .nc, .ngc, .tap or .txt, checked by extension and by its G-code words, up to 100 MB.
  • Moves drawn: G0 rapids, G1 lines, G2 and G3 arcs, with G20 inches, G21 millimetres, G90 absolute and G91 incremental.
  • Depth colours: cutting moves run from green at the shallow end to blue at the deep end, rapids are dashed grey.
  • Outputs: a 640 by 480 PNG image of the toolpath, plus a text file with the full stats.

The 200000 line limit keeps the browser fast on large programs. A program longer than that is usually a whole 3D print, and checking it in sections keeps each view readable. When a drawing needs converting before it becomes G-code, the DXF To SVG tool changes a DXF file into an SVG file first.

How G-Code Toolpath Visualizer Reads G-Code

The visualizer reads the program line by line, strips comments in brackets and after a semicolon, and follows G0, G1, G2 and G3 moves with their X, Y and Z words. Arcs use I and J centre offsets or an R radius, inches are converted to millimetres, and absolute and incremental modes are both followed. G-code is the language that tells a machine where to move and how fast to cut, as the G-code guide explains, and this tool draws exactly the path those moves describe. If the same program came from an SVG drawing, the SVG To DXF tool changes SVG drawings into DXF files for CAD programs.

Three honest limits are worth knowing. First, rapids are timed at a fixed 1000 mm per minute, because a G-code file does not state the rapid rate of the machine it will run on. Second, canned cycles from G81 to G89, macro variables, subprogram calls, and the G18 and G19 planes are not drawn; those lines are counted and reported as skipped. Third, the drawing shows the programmed tool centre path only, so it does not show the tool diameter, the material removed, or collisions. Numerical control is the automation of machine tools by programmed commands, as the Numerical Control guide explains.

Privacy

Everything you load stays in your browser. G-Code Toolpath Visualizer runs on your own computer, and nothing you choose is uploaded to a server, stored, or shared with anyone. The tool reads the program and draws it locally, and that is all it does.

Because no account is needed, there is no name, email, or history tied to what you do. Closing the tab ends the session, and the browser clears the program from memory. Your programs stay yours, and nothing about them is kept, shared, or sold.

Tips

A few habits make G-Code Toolpath Visualizer work smoother. When a program needs its paths checked as vectors first, the SVG Path Visualizer draws any SVG path the same way.

  • Draw the sample first, so you know what a correct toolpath looks like.
  • Check the min Z against the depth the job allows before anything runs.
  • Look for long dashed grey lines, which are rapids that waste time.
  • Compare the estimated time with the time the last job actually took.
  • Save the PNG with the job, as a record of the program you checked.

When the shape matches the part, the depth matches the job, and the time matches the plan, the program is ready for the machine. If the drawing behind the program needs a quick edit, the SVG Editor edits vector drawings in the browser.

More Tools For The Same Job

These tools handle the same kinds of jobs: CNC programs, cutting time, drawings, and scales.

FAQ

Common questions about G-code and this visualizer, answered plainly.

Is G-Code Toolpath Visualizer By TechnSols Free?

Yes, G-Code Toolpath Visualizer by TechnSols is completely free to use, with no account, no sign-up, and no usage limit. You can draw as many programs as you like, and everything runs in your browser, so nothing is uploaded or stored anywhere.

What G-Code Commands Does It Support?

It supports G0 rapids, G1 lines, G2 clockwise arcs and G3 counter clockwise arcs, with X, Y and Z words, I and J centre offsets, and R radius arcs. It also follows G20 inches, G21 millimetres, G90 absolute, G91 incremental, G17 plane, and G92 position set.

How Is The Estimated Time Worked Out?

Every move is timed at its own feed rate in millimetres per minute, and rapids are timed at a fixed 1000 mm per minute, because a G-code file does not state the rapid rate of the machine. The sample program takes 87.82 seconds, with 284.54 mm of cutting and 11.00 mm of rapids.

What Do The Colours Mean?

Cutting moves are coloured by depth, from green at the shallow end to blue at the deep end, so a deep pass stands out at once. Rapid moves are drawn as dashed grey lines, because they do no cutting. The red dot marks the start of the program.

What File Types Can I Load?

You can load a G-code file in .gcode, .gco, .nc, .ngc, .tap or .txt form, up to 100 MB and 200000 lines. Each file is checked by extension and by its G-code words. If the program came from a PDF drawing, the PDF To SVG tool converts the drawing first.

Load the sample, read the stats, and download the outputs. A program checked here goes to the machine with its shape, its depths, and its time already known, and that is the whole point of the visualizer.

Follow TechnSols on Google
Add TechnSols as a preferred source to see more of our tools in Google Search.
Add to Preferred Sources
Advertisement