Canonical: https://toolipedia.app/g-code-analyzer

# G-code Analyzer

Paste or load G-code to count lines and moves, measure rapid and cutting path length, estimate run time from the feed rates, preview the toolpath and read what each G and M code means.

Breadcrumbs: Toolipedia > Online calculators > Electronics and engineering calculators > G-code Analyzer

## About G-code Analyzer

Paste a program or load a file and this analyzer reads it line by line on your device. It counts code, comment and blank lines and rapid, cutting and arc moves, and adds up path length, measuring arcs from their centre offsets (I, J, K) or radius (R). Run time divides each cut by its feed rate and each rapid by the speed you enter. A top view of the toolpath is drawn and every G and M code is explained. Example: a 10 mm square cut at F600 after a Z plunge gives 46 mm of cutting and about 5 seconds.

## How to use G-code Analyzer
1. Paste your G-code into the box, or load a file from your computer.
2. Set the units and the rapid speed of your machine so the time is realistic.
3. Read the line counts, path length, run time and toolpath picture, and use the code list to look up what each code does.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- g code analyzer
- g-code run time estimate
- g code toolpath preview
- g code line counter
- g code reference
- cnc program length

## Frequently asked questions

### How accurate is the run time estimate?

It divides each move's length by its programmed feed rate, so it ignores acceleration, look-ahead and dwell times. Real machines are usually slower, especially on programs with many short moves.

### Which G-code features are not supported?

Drilling cycles, subprograms, macros, loops and variables are not expanded, and G28 and G53 moves are skipped. The notes under the result say when a program uses something that was not counted.

### Is my program uploaded anywhere?

No. The file is read in your browser and analysed on your device, so the program never leaves your computer.

### Is G-code Analyzer free?

Yes. G-code Analyzer on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with G-code Analyzer:
- [CNC Speeds, Feeds and Machining Time Calculator](https://toolipedia.app/cnc-speeds-feeds-and-machining-time-calculator)
- [Resistor colour code calculator](https://toolipedia.app/resistor-color-code)
- [Morse Code Practice and Timing Tool](https://toolipedia.app/morse-practice-generator)
- [SVG to G-code Converter](https://toolipedia.app/svg-to-gcode)
- [Wood Types and Plywood Grades Reference](https://toolipedia.app/wood-types-and-plywood-grades-reference)
