Return
Handwriting Generator

1. Text

Press Enter for a new line. Long text flows onto extra pages.

2. Handwriting Style

40
1.6
0
12

3. Natural Variation

35%
35%
30%
25%
0.6

Each click on Render re-rolls every random wobble, so you get a new variation of the same page. Changing any other setting keeps the current variation. For connected cursive fonts, turn off "Vary each letter" so words stay joined.

4. Paper

30%
Loading fonts...

History

Graves and the Neural Approach

The landmark paper on machine handwriting is Alex Graves's "Generating Sequences With Recurrent Neural Networks" (arXiv 1308.0850, first submitted in August 2013). It shows how Long Short-Term Memory networks can generate complex sequences with long-range structure simply by predicting one data point at a time. For handwriting, a mixture density output layer predicts the next pen position, and an extension lets the network condition on a text sequence, so a user types text and the algorithm generates a handwritten version of it. The abstract states that the resulting system is able to generate highly realistic cursive handwriting in a wide variety of styles. [Graves, arXiv:1308.0850] [Emergent Mind summary]

Why It Rarely Repeats Itself

Graves notes that RNNs are "fuzzy": rather than using exact templates from the training data, they use internal representations to interpolate between training examples. Unlike template-based algorithms, they synthesise and reconstitute the training data in a complex way and rarely generate the same thing twice. Although the network is deterministic, the randomness injected by sampling induces a distribution over sequences. This is the property a handwriting font lacks, and the reason this tool adds its own controlled randomness. [Graves, ar5iv HTML version] [Annotated excerpts]

A Neural Model in the Browser

In 2023 the web app Calligrapher.ai, created by machine-learning researcher Sean Vasquez, ran this style of model in a browser through JavaScript. It rendered typed sentences in nine styles, with adjustable speed, legibility, and stroke width, and allowed SVG download. Because it was trained on the IAM On-Line Handwriting Database (samples from 221 individuals), it is tuned toward English and has trouble with diacritics. It does not use a font at all. [cur.at, Calligrapher.ai coverage]

What This Page Actually Does

This tool does not run a neural network. It draws each word, and optionally each letter, from a handwriting-style font, then perturbs every piece with seeded random rotation, baseline shift, size change, spacing, and pen pressure. It exists because, as the Calligrapher.ai coverage puts it, handwriting-style typefaces have been around for over 80 years, but each letter comes out as a duplicate no matter how many times you use it. The jitter breaks that repetition. [cur.at, Calligrapher.ai coverage]

Related Approaches

Other open-source projects take the same practical route. The browser-based Text2Scribble uses a seeded pseudo-random number generator so that handwriting variations stay consistent, with per-word rotation, translation, scale, and pressure simulation, a randomness slider, and support for uploading your own font. handwritten.js converts typed text to realistic handwriting images and PDFs, and its author states it does not involve machine learning. [Text2Scribble] [Text2Scribble, features] [handwritten.js, npm] [handwritten.js video summary]

Controls Explained

Letter jitter varies each glyph's tilt, height, size, and gap. Word jitter moves and tilts whole words together. Line drift gives each line a slight random slope, as a hand without a ruler would produce. Pen pressure varies ink opacity from word to word, and ink bleed adds a faint soft edge. Because everything is driven by the seed, a page can be re-rendered identically later, and the batch button produces many distinct versions of the same text by stepping the seed. This description is of this page's own code.

Good Uses

Handwritten-style output suits greeting cards, invitations, mock-ups, scrapbook pages, game props, classroom materials, and design placeholders. The transparent mode exports the ink only, so it can be layered over your own paper, photo, or document in an image editor.

Please Do Not

Handwriting synthesis has been described in commentary as a kind of "deepfake" for scrawl, and the concern is reasonable: convincing machine-made handwriting can be misused. Do not use this tool to imitate a real person's signature or handwriting, to forge documents, or to present generated pages as work you wrote by hand where that would mislead a teacher, employer, or institution. The fonts here are generic styles and do not reproduce any individual's writing. [Deepfakes and Handwriting Synthesis, Substack]

Privacy and Fonts

Your text is rendered locally on a canvas in your browser and is never uploaded. The built-in handwriting fonts load from Google Fonts, so the page requests those font files when it opens. A font file you upload is read only in your browser through the standard FontFace interface.