Guides ·
TAP file viewer: how to open a .tap file
A file ending in .tap is usually a CNC program: plain-text G-code for a router or mill, often one controlled by Mach3. The same extension is also used for tape images of old home computers such as the ZX Spectrum. This post shows how to tell which one you have, how to read the G-code, and how to see what the machine will cut, on a program that engraves a smiley and cuts out a disc held by four tabs.

Which .tap file do you have?
Open it in a plain text editor such as Notepad or TextEdit. If you see short lines like G0 X10 Y20 or G1 Z-1 F300, it is a CNC program, and the rest of this post is for you.
If you see mostly unreadable symbols, it is probably a tape image for an old home computer such as the ZX Spectrum or Commodore 64, meant for an emulator. A G-code viewer cannot open those.
What is inside a CNC .tap file
G-code is a list of instructions, one per line, each a letter followed by a number. G21 sets millimetres (G20 sets inches). G90 means every position is measured from program zero. X, Y and Z are positions; F is the feed rate, how fast the bit moves, in mm per minute here.
G0 is a rapid move, G1 a straight cutting move at the feed rate, and G2 or G3 an arc, clockwise or anticlockwise, with I and J giving the arc's centre measured from its start. In Mach3 that matches the IJ mode set to Incremental; in the other mode the same line draws the circle round the wrong centre. S sets the spindle speed in rpm, M3 starts the spindle, M5 stops it, M30 ends the program, and anything in parentheses ( ) is a comment.
Rapid moves, passes and tabs
Rapid moves (G0) travel as fast as the machine can, through the air, at a safe height. Cutting moves (G1, G2, G3) run at the programmed feed rate with the bit in the material. Deep cuts are split into passes: cut 1 mm, step down, go round again.
On the last pass, a cut-out would come loose while the bit is still spinning beside it. Tabs prevent that: short spots where the last pass lifts and leaves a thin bridge holding the part, which you cut or sand off afterwards.
Seeing the toolpath in the browser
The unmake TAP file viewer draws the program in any browser, phones included. Drop the file and the toolpath appears in one colour per tool; a flat job like this opens seen from above, with Top, Front and 3D buttons on the view. Front shows every pass from the side, which is where tabs show up as short steps in the last ring.
The panel gives the size, the deepest cut and the estimated time; Details adds the ranges, units, travel and tools. Play runs the program with the current line highlighted, and Download gives a PNG, a 1:1 plan-view SVG or a JSON summary.
Reading the numbers right
The viewer's part size is measured at the bit's centre, and says so. When a program cuts round the outside of a part, the centre runs half a tool diameter outside it, so the toolpath measures one tool diameter more than the part you keep.
The time is distance divided by feed rate for every move, plus rapids; the viewer says acceleration and corner slow-downs are not modelled, so a real machine usually takes a little longer.
A worked example: the smiley sign with tabs
- Open smiley-sign-tabs.tap in a text editor: 73 lines. Line 1 is %, a start mark left over from punched tape, then a comment saying what the program does, G21 for millimetres, T1 M6 for a 3 mm flat end mill and S12000 M3.
- Drop it on the TAP file viewer. Estimated time: 59.4 s, made of 58.2 s of cutting and 1.2 s of rapids at the default rapid rate of 10,000 mm/min.
- Read the panel: part size 63 × 63 mm, measured at the bit's centre, and deepest cut 3 mm. Details gives Z from -3 to 5, units mm (from the file), 691 mm of cutting travel and the tool T1 3 mm flat end mill, 300–800 mm/min.
- Explain the 63: the bit's centre travels a 63 mm circle, so with a 3 mm bit the disc you keep is 60 mm.
- Switch to Front. Three rings sit 1 mm apart, and the bottom one steps up four times: the tabs. The comment on line 48 says so: down to -3.0 between tabs, up to -2.0 over each one. Each tab is about 4 mm wide at its narrowest and 1 mm thick.
- Check the depth against your sheet. The last ring stops at Z-3 with Z0 on top of the material. Measure the sheet: a real job cuts a few tenths of a millimetre past it, into a spoilboard (a sacrificial board under the work), so no skin is left.
Common mistakes
- Mixing up units. An inch program read as millimetres looks 25.4 times too small. Look for G20 or G21 near the top before you trust any size.
- Setting Z zero in the wrong place. This program expects Z0 on top of the material. Zeroed on the spoilboard, every cut lands a sheet thickness too deep: even the engraving goes right through, and on sheets over 5 mm the rapids at Z5 hit it.
- Using a different bit from the one programmed. The path assumes 3 mm; with a 6 mm bit the same path leaves a 57 mm disc. Check the tool comment and the T number.
- Cutting exactly to the sheet's nominal thickness. Sheets vary by a few tenths; measure yours and cut slightly past it into the spoilboard.
- Leaving the tabs on. They hold the disc while it is cut; afterwards, cut them with a knife or flush-trim bit and sand the edge.
Questions
What program opens a .tap file?
A CNC control program such as Mach3 runs it, any text editor shows the code, and a G-code viewer draws the toolpath.
Is a .tap file the same as a .nc or .gcode file?
Inside, yes: all three hold plain-text G-code. Different CAM programs and controllers simply prefer different endings, so check the G-code itself, not the name.
Can a G-code viewer open a ZX Spectrum or Commodore 64 .tap file?
No. Those are tape images of old home-computer data. Open them in an emulator for that computer instead.
Sample file: smiley-sign-tabs.tap · ours (made by unmake for this post)
Sources
- LinuxCNC documentation: G-codes (G0, G1, G2/G3, G20/G21, G90)
- Sinclair Wiki: TAP format (ZX Spectrum tape images)