01What is Text to Handwriting?
Sometimes you want a label that looks jotted down, not typeset, and you don't want to open a drawing app for it. This tool builds a small SVG from your text where each character sits a little off its line, like letters written by hand. Here's how it works in the code. Your input is split into lines on line breaks, and each line is split into characters by code point, so emoji stay whole. Every character becomes its own <text> element. Each one gets a random nudge of up to 1px left or right and 1.5px up or down. It is also rotated around its baseline point by a small random angle. That angle stays within 1.5 degrees either way for Cursive and Print, and 3 degrees for Sketch. The gap to the next character varies by up to 1px too. The three styles map to generic CSS font families, as defined in the CSS Fonts spec from the W3C. Cursive uses the cursive family at 20px with 1px letter spacing. Print uses serif at 20px with 2px spacing. Sketch uses monospace at 16px with no extra spacing and the wobblier rotation. Line height is fixed at 40px. The canvas is estimated rather than measured: width is 14px per character of the longest line plus 40, with a 300px minimum, and height is 40px per line plus 40, with an 80px minimum. So three short lines give a 300 by 160 canvas, and a 30-character line gives 460 by 80. The characters <, >, & and " are escaped as entities, so text like a<b & "c" produces valid markup. Each glyph uses fill="currentColor", which follows the page colour in the Preview. A few honest limits. The jitter comes from Math.random, so every keystroke or style switch re-rolls the layout and you can't reproduce an earlier version. The output is still real text, not traced strokes, so it only looks as handwritten as the viewer's cursive font. A Windows laptop and a Mac may draw it quite differently. Very wide glyphs can overflow the estimated width. And since each letter is a separate element, screen readers and search tools may read the text one letter at a time. The SVG is built by a short function in your browser tab, and the markup only goes as far as your clipboard.
Designers and technical writers who want a quick, editable SVG caption with an informal hand-placed look. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Text to Handwriting
- Choose a style with the Cursive, Print or Sketch buttons.
- Type into Input Text, pressing Enter for each new line, or load an example.
- Look at the Preview and keep tweaking until the wobble looks right.
- Click Copy SVG to copy the full markup.
- Paste it into an .svg file, inline HTML or a design tool, or press the reset icon to clear.
03Worked examples
- Input:
Hi (Cursive) - Result:
<svg ... viewBox="0 0 300 80" ...><text ... font-family="cursive" font-size="20" ...>H</text><text ...>i</text></svg> - Trimmed. Short text gets the 300 by 80 minimum canvas and one <text> element per character. Positions and angles change on every render.
- Input:
a<b & "c" (Print) - Result:
<text ... font-family="serif" font-size="20" ... letter-spacing="2"><</text> - Trimmed to the second character. Reserved characters are escaped, and the input yields 9 <text> elements, spaces included.
- Input:
line one / line two / three on three lines (Sketch) - Result:
<svg ... viewBox="0 0 300 160" width="300" height="160" ...> - Three lines give 3 × 40 + 40 = 160px of height. Sketch uses monospace at 16px.
- Input:
30 x characters on one line (Cursive) - Result:
<svg ... viewBox="0 0 460 80" width="460" height="80" ...> - Width is estimated as 30 × 14 + 40 = 460px, not measured from the font.
04Common use cases
- Adding a hand-lettered caption next to an arrow in a documentation diagram or blog screenshot
- Making a casual sign-off or margin note image for a newsletter
- Mocking up an informal sticky-note look in a wireframe without drawing every letter
- Producing several jittered variants of one word to compare in a design review
- Dropping a playful heading into a slide deck as a scalable SVG instead of a blurry PNG
05Tips
- Copy as soon as you like a variation. Any edit, even switching style and back, generates a new random layout.
- For identical rendering on every machine, open the SVG in Inkscape or Figma and convert the text to outlines.
- Opened on its own, fill="currentColor" usually renders black. Swap it for a hex colour if you need something else.
- The SVG carries class="text-foreground", which only means something on a Tailwind page. Delete it if it clashes with your own CSS.
- Long single lines can get clipped by the estimated width. Break them into shorter lines or widen the viewBox by hand.
06Related concepts
SVG text, Handwriting effect, Generic font families, Jitter, Vector graphics.
Frequently Asked Questions
What is Text to Handwriting?
Text to Handwriting is a free, browser-based developer tool on AIDToolStack. Render text in handwriting-style SVG It requires no installation or sign-up and works entirely in your browser.
Is Text to Handwriting free to use?
Yes. No sign-up, no fees and no usage cap.
Does Text to Handwriting store my data?
No. It runs in your browser; nothing is uploaded.