February 19, 2026
Description
A customizable OpenSCAD generator for magnetic nametags.
Text, font, size, margins, rounded corners, magnet placement, and text style are fully parametric.
Online
- Click on "Customize"
Local
- Download and open the .scad file in OpenSCAD.
- Tweak the parameters in the Tag and Advanced sections at the top.
- Press F5 to preview, then F6 to render.
- Export to STL for printing.
Add a pause to your print at the layer just above the magnet cavity (magnet_under + magnet_height + magnet_tolerance). This lets you drop the magnets into the holes before the printer seals them in. In most slicers you can add a pause via a height-based color change or custom G-code (M0 or M601). With the default settings this is at 2.6 mm (0.4 mm floor + 2 mm magnet + 0.2 mm tolerance).
| Name | Type | Default | What it does |
|---|---|---|---|
| input | string | "Custom Text" | The main text displayed on the tag. |
| bold | bool | true | Toggle bold text. |
| text_size | mm | 10 | Height of the text. |
| text_invert | bool | false | Cut text into the tag instead of extruding outward. |
| text_depth | mm | 0.4 | Depth of the text extrusion or cut. |
| margin | mm | 3 | Margin around the text on all sides. |
| tag_radius | mm | 3 | Radius for all four rounded corners. |
| magnet_diameter | mm | 6 | Diameter of the magnet holes. |
| magnet_height | mm | 2 | Height of the magnet holes. |
| magnet_tolerance | mm | 0.2 | Extra clearance added to the magnet cavity diameter. Increase if magnets don't fit, decrease for a tighter hold. |
| Name | Type | Default | What it does |
|---|---|---|---|
| magnet_under | mm | 0.4 | Thickness of the floor under the magnets. |
| magnet_above | mm | 0.6 | Thickness of the ceiling above the magnets. |
| font_factor | float | 0.8 | Width factor for text width calculation. Calibrate to your font. |
| magnet_max_spacing | mm | 30 | Maximum distance between magnet holes before an additional hole is added. |
| name_line_spacing | float | 1.5 | Line spacing multiplier for multi-line names. |
| tag_color | color | "white" | Color of the tag body. |
| text_color | color | "black" | Color of the text. |
You can view or edit the code directly at the following links:
This project is licensed under the
Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
You may remix, adapt, and build upon this work non-commercially, as long as you credit the original creator.
More info: https://creativecommons.org/licenses/by-nc/4.0/
Created by Christian Leroch
https://www.Leroch.net
License:
BY-NC-SA