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.

Supports letters A-Z, numbers 0-9, and standard symbols ( - . / ).
Machining Setup
When enabled, the generator uses true mathematical arcs for curved letters, resulting in a smoother finish.
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

Layout
Character width w = 0.6 × H
Character pitch = 1.4 × w = 0.84 × H
Text width = (n − 1) × 0.84 × H + 0.6 × H
Centre: first X = Start X − text width ÷ 2
H is the text height and n the number of characters, spaces included. Each character is drawn on a grid from 0 to 1 in both directions, scaled by w across and H up, then added to the start point. Start Y is the baseline.
Each Stroke
G0 X Y (start of stroke)
G1 Z depth F (feed × 0.5)
G1 X Y F feed (or G2/G3)
G0 Z retract
The program opens with G90 G54 G17 and a G0 move to the retract height. Smooth Arcs mode cuts the curves of B, C, D, G, J, O, P, Q, R, S, U and 0 as G02/G03 arcs scaled by H in both directions, so circles stay round. The other characters, including the digits 2, 3, 5, 6, 8 and 9, use straight lines in both modes. Coordinates are written to 4 decimals in inch and 3 in metric, and feed rates to 1.

Worked Examples

Text L, inch, H 0.25, feed 15, depth −0.015, retract 0.100, start X0 Y0
Generated G-code
( --- 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.
Text SN-42 centred on X1.0 Y0.5, same settings
  • 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:
First lines of the S
( 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

A built-in single-line stick font, where each character is drawn along its centreline rather than outlined. It covers capitals A to Z, the digits 0 to 9, the hyphen, full stop and forward slash. Each character is 60% as wide as it is tall.

Deep enough to stay readable after deburring and finishing, which depends on the tool and material. With a V-bit, line width = 2 × depth × tan(half the tip angle), so a 90° bit cuts a line twice as wide as it is deep. Start shallow and test on scrap.

No. It contains the engraving moves only, after a G90 G54 G17 line and a move to the retract height. Add the tool change, spindle speed and start, tool length offset, coolant, units code and program end yourself.

Rounded letters (B, C, D, G, J, O, P, Q, R, S, U and 0) are cut with G02/G03 arcs instead of short straight lines, which gives smoother curves and fewer lines. Other characters are the same in both modes. In arc mode the S reaches about 5% above and below the text height.

Every plunge runs at half the feed rate you enter, so with 15 IPM it plunges at 7.5 IPM. The F value is repeated on every plunge and every cutting move, so the rate does not depend on earlier lines.

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.