Turn a Text Prompt Into an STL in FreeCAD
In this article
Turning a text prompt into an STL file in FreeCAD means converting a line of text into a 3D-printable solid shape. This guide walks you through the entire process, from creating the text as a sketch to extruding it and exporting the final STL. You’ll need FreeCAD installed (version 0.20 or newer recommended) and a basic understanding of the Part Design workbench.
What You'll Need
- FreeCAD installed on your computer (free from freecad.org)
- A 3D printer or slicer if you plan to print the result (optional)
- Basic familiarity with navigating the 3D view (rotate, zoom, pan)
Step-by-Step
- Open FreeCAD and create a new document. Start FreeCAD, then click File > New or press Ctrl+N to create a blank document.
- Switch to the Part Design workbench. From the workbench dropdown (top toolbar), select Part Design. This workbench provides the tools to create a solid from a sketch.
- Create a new body. Click the Create body button in the toolbar (or go to Part Design > Create body). A new body appears in the tree view, and you’re now in the body’s origin.
- Create a sketch. Click Create sketch in the toolbar. Choose the XY_Plane as the sketch plane and click OK. This opens the Sketcher workbench in a 2D editing view.
- Add text to the sketch. In the Sketcher, click the A icon (Create a text block) or go to Sketch > Sketcher geometries > Create text. In the dialog that appears, type your desired text in the Text field. Set the Height (e.g., 10 mm) and optionally adjust the Font (choose a TrueType font installed on your system). Click OK.
- Position the text. The text appears as a wireframe in the sketch. Use the Move tool (the arrow with a small cross) to drag it to a convenient location, or use the Constrain tools to fix its position relative to the origin. For a centered print, you might want to constrain the text’s center to the sketch origin.
- Close the sketch. Click the Close button in the Sketcher toolbar to exit the sketch and return to the Part Design workbench.
- Pad the sketch. Select the sketch in the tree view, then click Pad in the toolbar. In the Pad dialog, set the Type to Dimension and enter a Length (e.g., 5 mm) for the thickness of the text. Click OK. FreeCAD extrudes the text into a 3D solid.
- Verify the result. Rotate the view to confirm the text is now a solid 3D shape. If you want to add a base plate, you can create another sketch on the bottom face and pad it, but for a simple text STL, this is optional.
- Export as STL. Select the Pad (or the body) in the tree view. Go to File > Export, choose STL (STereoLithography) from the file type dropdown, name your file, and click Save.
- Check the STL in a slicer (optional). Open the exported STL in your slicer (e.g., Cura, PrusaSlicer) to verify it’s oriented correctly and ready to print.
Common Mistakes
- Text not visible after sketch close. If the text doesn’t appear as a solid after padding, you may have forgotten to close the sketch or the text was not fully constrained. Ensure the sketch is closed and the text is fully defined (turns green).
- Exporting the wrong object. Selecting the sketch instead of the pad will export a 2D outline, not a solid. Always select the pad (or the body) before exporting.
- Text is mirrored or reversed. This happens if you sketch on the backside of the plane or if the text is placed on the negative side. Use the Map Mode to flip the sketch if needed, or simply rotate the view before sketching.
- Text is too thin to print. Very small text or thin fonts may not print well. Increase the height or pad length, or use a bolder font.
Tips
- Use a TrueType font that supports the characters you need. FreeCAD uses system fonts, so if your text has special characters, make sure the font supports them.
- Set the text height relative to your print size. For a typical keychain, 10 mm height is good; for a large sign, you might need 50 mm or more.
- Add a small base plate for stability. If you’re printing a standalone text, a 1-2 mm thick base under the letters makes it easier to print and less prone to warping.
- Use the Draft workbench for quick text if you don’t need parametric control. The Draft workbench has a Shape from text tool that can be faster, but it’s less flexible.
- Always check the units. FreeCAD defaults to millimeters, which is standard for 3D printing. If you need inches, change the unit system in Edit > Preferences > General > Units.
Troubleshooting
Text doesn’t appear in the sketch. If you don’t see the text after clicking OK, it might be off-screen. Press F to fit the view to all objects, or zoom out. Also, ensure the text height is not set to 0.
Pad fails with an error. This usually means the sketch is not closed or has overlapping geometry. Go back to the sketch, look for red or orange constraints, and fix them. Use Validate sketch in the Sketcher menu to find issues.
Exported STL is empty or has no faces. You probably selected the sketch or a non-solid object. Select the pad in the tree view (it should have a blue icon) and export again.
Text is not solid, only a wireframe. This happens if you export the sketch instead of the pad. Ensure you have padded the sketch and that the pad is selected.
Text is upside down in the slicer. Rotate the model in the slicer, or in FreeCAD, use Edit > Placement to rotate the pad 180° around the X or Y axis before exporting.
Frequently Asked Questions
Can I use any font? FreeCAD uses system-installed TrueType fonts. You can install additional fonts on your OS and they will appear in the font list.
How do I make the text curved (e.g., along a circle)? This requires a more advanced workflow: create a sketch with the text, then use the Part > Sweep tool along a curved path, or use the Draft > Shape from text with a Curve option. It’s not a one-click operation.
Can I edit the text after padding? Yes, double-click the sketch in the tree view, edit the text, close the sketch, and the pad will update automatically if you have the Auto recompute option enabled (it is by default).
Why is my text not a single solid? If you export the body, it will be a single solid. But if you export the pad only, and the text has multiple letters, it’s still one solid because the pad creates a single extrusion. However, if you have separate pads for each letter, you’ll get multiple solids. Use a single sketch for all letters.
What is the best STL resolution for 3D printing? FreeCAD’s default STL export uses a linear deflection of 0.1 mm, which is fine for most prints. You can adjust this in Edit > Preferences > Import/Export > STL if you need finer detail.
Can I add a hole to the text for a keychain? Yes, create a second sketch on the top or bottom face of the pad, draw a circle, and use Pocket to cut through. This works well for keychains.