Quick embed
Paste this where you want the viewer to appear:
<iframe
src="https://ultranc.com/gcode-viewer/embed/"
title="UltraNC Free G-code Viewer"
loading="lazy"
style="width:100%;max-width:1100px;height:752px;border:0;border-radius:12px">
</iframe>
Live preview
This is exactly what your visitors will see, with the options above applied. Take it for a spin.
Heads-up: the viewer loads live from UltraNC, so it only appears when you're online and can reach ultranc.com. It works in any web page, including a local HTML file opened in your browser, as long as you have an internet connection.
Step by step
- Copy the snippet above (the Copy button puts it on your clipboard).
- Paste it into your page's HTML wherever you want the viewer: a blog post, a docs page, a product page, anywhere you can add HTML.
- Publish. That's it. There's no account, no API key, and nothing to install or maintain. Fixes, updates and new features flow through automatically.
Full example page
A complete, minimal HTML page you can copy wholesale:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My G-code Viewer</title>
</head>
<body>
<iframe
src="https://ultranc.com/gcode-viewer/embed/"
title="UltraNC Free G-code Viewer"
loading="lazy"
style="width:100%;max-width:1100px;height:752px;border:0;border-radius:12px">
</iframe>
</body>
</html>
Good to know
- Private by design. Your visitors' G-code is read and rendered in their browser. Their files are never uploaded.
- Always current. It runs live from UltraNC, so improvements and fixes appear automatically, with nothing for you to update.
- It links back. The viewer carries the UltraNC.com mark, which opens our site in a new tab. That's the only "cost" of using it for free.
- Works on mobile. The layout adapts, and on narrow screens the viewer stays usable.
Sites using the viewer
Thanks to these sites for embedding the viewer. Each listing links to the live embed, so you can see a real deployment before adding your own.
- DatumCalc, feeds & speeds calculators for machinists. See the viewer on their G-code simulator.
If you have embedded it somewhere, say so on the feedback board and we'll add you here.
For questions or feature requests, head to the feedback board.