G-code Viewer

Drop or paste a G-code file to see the toolpath layer by layer from above, and check the size, filament use and an estimated print time on the spot. It reads 3D printer output and CNC NC files, and the file never leaves your device.

On-device・No uploadMobile friendlyWorks offline

Your files and input are processed only inside your browser on this device and are never uploaded to our servers.

Drop a G-code file, or choose a file

or

Opens G-code written by a slicer, or an NC file for a CNC machine. The file never leaves your device.Accepts: .gcode, .gco, .nc, .ngc, .tap, .txt (up to 100 MB and 2 million lines)Up to 100 MB per filePaste (Ctrl+V) also works
Pasting is limited to 5 million characters. Open larger files as a file.

How to use

  1. part.gcode

    Open or paste G-code

  2. top view by layerlayer slider

    View the toolpath by layer

  3. summarytime and filament

    Get size and time estimates

Open G-code, view the toolpath by layer, and get size and time estimates
  1. Drop a G-code file here or click “Choose files”. You can also paste the text and click “Analyze”.

  2. After the analysis, the toolpath appears as seen from above. Pick a layer with the “Layer to show” slider: the current layer is drawn in a strong colour and the layers below in a light one.

  3. Drag to pan, and scroll or pinch to zoom. You can show only the current layer, and switch the travel moves (no extrusion) on and off.

  4. Check the X Y Z range, the number and height of layers, the distances, the filament length and weight estimate, the time estimate and the commands used in the summary below.

  5. Use “Copy summary” or “Save summary” for the numbers, and “Save the view as PNG” for the current picture.

What it does

Toolpath by layer, from above

Draw up to any layer with the slider, with extrusion and travel in different colours. Zoom and pan are supported, and arcs (G2, G3) are drawn as curves.

Size, layers and extrusion

Get the X Y Z range of the extruded path, the number and height of layers, the distances and the filament length. A volume and a weight estimate come from a 1.75 mm or 2.85 mm diameter and the density of PLA, PETG, ABS or TPU.

Time estimate

The distance of each move is divided by its feed rate F and summed. Acceleration is ignored, so a real print usually takes longer.

Commands used

Lists each command with its count, and separates the commands used for the path and time from those that are skipped. Slicer comments such as ;TIME: are shown as they are.

Use cases

  • Check the toolpath and the size of a G-code file before you start a print
  • Get a print time estimate and the filament use of G-code you received, without a slicer
  • Look at the path layer by layer to find supports and gaps
  • Check the cutting path of a CNC NC file from above

Supported formats

Input

.gcode, .gco, .g.nc, .ngc, .tap, .cnc.txt (G-code text)Pasted text

Output

Summary text (copy or .txt)Toolpath picture (PNG)

Capability matrix

FeatureSupportNotes
G0 and G1 linear moves, G90 and G91, G20 and G21, G92, G28Supported—
Arcs (G2, G3) with I J and with RSupportedXY plane (G17) only. Arcs in G18 or G19, and arcs with an invalid centre or radius, are drawn as straight lines
Absolute and relative extrusion (M82, M83)Supported—
Layer-by-layer view, zoom and panSupported—
Distances, extrusion and filament lengthSupported—
Volume and weight estimatePartialAn estimate from the chosen diameter and material density. It treats the filament as solid and does not reflect the real density or fill
Print time estimatePartialA rough distance-over-feed-rate figure. Acceleration, jerk, speed limits and heating waits are not included, so a real print usually takes longer
3D view (from the side or at an angle)Not supportedTop view only. Use the 3D Model Viewer to look at a model in 3D
Commands for temperature, fans, retraction settings and so onPartialThey are counted but not used for the path, distance or time
Tool radius compensation, canned cycles and subprograms (G41, G81, O words and other CNC functions)Not supportedThey are skipped and only counted
Binary G-code (.bgcode)Not supportedExport it again as ASCII G-code
Editing, saving or converting G-codeNot supportedView and measure only
Machine differences (firmware-specific commands and unit handling)PartialIt follows the common reading of RepRap and Marlin G-code. E values are not converted to inches under G20

Limits & notes

  • Up to 100 MB and 2 million lines per file. Pasting is limited to 5 million characters.
  • Up to 3 million points are drawn. Later points are not drawn, but the numbers cover the whole file.
  • Up to 10,000 layers. Later ones are merged into the last layer (for example a spiral toolpath).
  • The start position is taken as (0, 0, 0). G28 returns the named axes (all axes when none are named) to 0.
  • Analysis runs in a Worker and can be canceled. It works on smartphones, but a PC is recommended for large files.

Privacy & safety

Loading, analysis and drawing all run in your browser. The G-code and its file name are never sent to a server.

FAQ

Can I check G-code without installing anything?
Yes. Drop or paste the file and the toolpath appears layer by layer from above. The file never leaves your device.
How accurate is the print time estimate?
It is the distance of each move divided by its feed rate F, without acceleration, speed limits or heating waits, so a real print usually takes longer. If the slicer wrote a comment such as ;TIME:, it is shown in the summary as it is.
How is the filament weight calculated?
The length is the sum of E over the moves that extrude. It is turned into the volume of a cylinder of the chosen diameter (1.75 or 2.85 mm) and multiplied by a density (PLA 1.24, PETG 1.27, ABS 1.04, TPU 1.21 g/cm³). Retractions are not counted.
Can it open CNC NC files?
For a file with no extrusion (E), G1 feed moves are drawn as the cutting path, and G0 rapid moves can be shown if you need them. Tool radius compensation and canned cycles are skipped.
Which tool do I use to look at a 3D model such as STL or GLB?
Open STL, GLB and OBJ models in the 3D Model Viewer. This tool is for the path in G-code that a slicer has already written.
Can it open .bgcode?
No. Binary G-code cannot be opened. Turn binary G-code off in the slicer settings and export ASCII G-code instead.

3D Model Viewer

Open 3D models in STL, GLB (glTF), OBJ, FBX or PLY right in your browser, with no 3D software. Rotate them, check the size, volume and holes, and save the current view as a PNG or convert the model to GLB, STL or OBJ. Your files stay on your device.

No upload

SVG Studio

Load an SVG file or paste code to get a safe preview and a check of what is inside. Shrink it with SVGO, export PNG or WebP, turn it into a data URI, CSS or React code, and format it — all inside your browser.

No upload

Unit Converter (tsubo, tatami, inch, °C)

1 tsubo = 400/121 m² (about 3.305785 m²). A tatami varies by region and standard, so each standard has its own row. 1 go is about 180.39 mL.

No upload

GeoJSON Studio

Open GeoJSON, TopoJSON, KML, GPX, CSV or WKT, draw the coordinates on a simple plain map, and check them against RFC 7946. You can also convert between formats and measure area and length on a sphere. Files are never sent to a server.

No upload

GIS Coordinate Tool

Convert latitude and longitude (decimal, DMS, degrees-minutes), the old Tokyo Datum, Japan plane rectangular coordinates, UTM, Web Mercator, regional mesh codes and geohash. Convert whole CSV or Excel columns at once, and calculate the distance and azimuth between two points.

No upload

EXE/DLL Info Viewer (PE Viewer)

Drop an .exe, .dll or .sys file to see its processor, build time, ASLR and DEP settings, section permissions and entropy, the DLLs and functions it imports, and its version info. The file is not run, and this is not a virus check. For the contents of XML or images, use another tool.

No upload

Last updated: