Engraving Text Generator
Create basic stick-font toolpaths for serial numbers and part labels without needing CAM software. Generates clean, linear G-Code moves or smooth arcs.
Toolpath Preview
Generated G-Code
How the G-Code Engraving Generator Works
The generator turns a line of text into engraving moves using a single-line stick font. Every stroke of every character becomes a rapid to its start, a plunge to depth, a set of cutting moves and a retract.
A stick font draws each character along its centreline, like handwriting, instead of outlining it. That suits serial numbers, part numbers and labels cut with a V-bit, spot drill or small engraving cutter, where the width of the line comes from the tool. Lowercase letters are engraved as capitals. The font covers A to Z, 0 to 9, the hyphen, full stop and forward slash. Any other character is skipped but still takes up a character space.
How It Works
Worked Examples
( --- ENGRAVING GENERATOR --- ) ( TEXT: "L" ) ( ALIGN: LEFT ) ( MODE: LINEAR G01 ) G90 G54 G17 G0 Z0.1000 (Safe Z) ( Char: L ) G0 X0.0000 Y0.2500 G1 Z-0.0150 F7.5 G1 X0.0000 Y0.0000 F15.0 G1 X0.1500 Y0.0000 F15.0 G0 Z0.1000 ( --- END ENGRAVING --- )
- w = 0.6 × 0.25 = 0.15 in, so the foot of the L ends at X0.15.
- The plunge runs at half the feed: 15 × 0.5 = F7.5.
- Pitch = 0.84 × 0.25 = 0.21 in.
- Text width = 4 × 0.21 + 0.15 = 0.99 in.
- The first character starts at X1.0 − 0.99 ÷ 2 = X0.505.
- The S begins at font point (1, 0.8), so the first rapid is X0.505 + 0.15 = 0.655 and Y0.5 + 0.8 × 0.25 = 0.7:
( Char: S ) G0 X0.6550 Y0.7000 G1 Z-0.0150 F7.5 G1 X0.6250 Y0.7500 F15.0
Enter the same values above and you will get the same G-code.
Tips for Using the Results
- Add what the generator leaves out. There is no tool change, spindle start, coolant, tool length offset, units code (G20 or G21) or program end (M30). Add them around the generated moves, and make sure the Inch/Metric toggle matches the units your machine is in.
- Set Z zero on the top of the part. Cut depth is a Z position, so enter it as a negative number. The tool rapids between strokes at the retract height, so set it high enough to clear clamps and vice jaws.
- Work out the line width. With a V-bit, width = 2 × depth × tan(half the tip angle). A 90° V-bit at 0.015 in deep cuts a line about 0.030 in wide. Keep it well under the character width so the letters stay readable.
- Avoid brackets in the text. The text is copied into a comment line, and a ( or ) in it can end the comment early and cause an alarm.
- Preview before cutting. Check the program in the G-Code 3D Viewer and engrave a test piece on scrap first.
Frequently Asked Questions
Generated programs are a starting point. Add your own start-up and end lines, check depths and retract heights against your setup, and prove the program out with single block on scrap before engraving a finished part.