Text to SVG
Turn text into SVG code with size, weight, spacing, line height and anchor, plus a live preview.
Live preview
SVG code
The output is an SVG text element with generic font families, not converted glyph outlines: a browser cannot outline system fonts without a font file. See the article below for details.
How to use it
- Type the words into the text box. Each row becomes one line of the output.
- Set the font size, font weight, letter spacing and line height. Pick a text anchor to align lines left, center or right, and a generic font family.
- The preview renders as you type. The viewBox is measured from the rendered text, so the frame fits the words.
- Copy the SVG code and paste it into your page, template or design file. The output is a text element, so it stays selectable, searchable and small.
Common use cases
- Building an inline logo lockup with your wordmark as real text that scales without pixelation.
- Prototyping headline layouts before a designer locks the type.
- Generating decorative section labels for landing pages without exporting an image.
- Teaching SVG text attributes with a live editor.
Why it stays private
Rendering, measuring and code generation all run in your browser. Nothing is uploaded, and no font file is downloaded.
FAQ
Q: Why is the output a text element instead of a path? A: Converting a glyph into a path requires the font file itself: a browser has no API that outlines a system font, and this tool never downloads fonts. The output uses the text element with a generic font family, which keeps the markup small and the words selectable.
Q: What are the consequences of using text instead of a path? A: The look depends on the viewer's installed fonts, so the same file can render differently on another device. If the exact shape matters, convert locally with a desktop tool such as FontForge or Inkscape, or ship a licensed webfont and reference it in the SVG.
Q: Which font families can I pick? A: Only the generic CSS families: sans-serif, serif, monospace and cursive. Each viewer maps them to a local font, which is why the preview here may differ from your production site.
Q: Does the viewBox stay correct if I edit the numbers? A: Yes. The frame is re-measured after every change, so the bounds follow the current text, size and spacing. If measurement is unavailable, the tool falls back to a character-count estimate, which may be loose for unusual fonts.
Your data stays on this device
Text to SVG runs 100% locally. Everything you paste or drop is processed by your own browser and never transmitted. Nothing is stored on our servers — close the tab and it is gone.
Nothing you type is sent to a server, logged, or used for analytics. The page works even with your network disconnected after first load.