What is PenGPT?
PenGPT is a research project by Sam Greydanus, released on 12 November 2026. It draws handwriting the way a person does, one pen stroke at a time, rather than painting pixels, so what comes out is a set of strokes you can save as an SVG. The handwriting model has 6M parameters and fits in a 5.8 MB file. A second, 54M-parameter model draws simple sketches from a typed phrase.
There are two ways to use it. A free page in the browser writes your text in any of 1,192 hands taken from the training data, and according to the page nothing you type leaves it. The code on GitHub, under the Apache 2.0 licence, adds the part that copies a hand it has never seen: give it a photo of a few handwritten words and about 10 seconds later on a laptop it writes new text in that hand.
The handwriting model was trained on 495,590 words by 1,255 writers, mostly traced from scanned pages: two research collections (CSAFE and the CEDAR letter), letters and diaries from the Internet Archive and the Library of Congress, and study notes from public GitHub repositories. The training data is not released.
Is PenGPT worth it?
A handwritten note gets read in a way a printed one does not. Writing fifty thank-you cards by hand takes an evening, and handwriting fonts give themselves away the second time the same letter shape turns up.
PenGPT writes like a pen. It lays down strokes one after another, so the same word comes out slightly different each time and the letters join the way a person's would. In the free browser page you type a line, pick one of 1,192 hands or press for another, and slide between neat and loose. You can save the result as an SVG.
The headline feature lives in the code on GitHub. Point its photo script at a picture of a few words someone wrote and it finds the words, traces the clearest eight back into strokes and fits a new style to them; the author puts this at about 10 seconds on a laptop for his sample letter. Then it writes anything you like in that hand. You need Python, a 0.7 GB download for the tracing model, and an Anthropic API key, because the script sends cropped images of the words in your photo to Claude to read them.
The catch: the output is not as readable as the real thing. In the author's own tests a text-reading program got 54% of generated words exactly right, against 66% for real handwriting. Most of the training ink was traced from scans, so the stroke order is the model's guess, and the example picture at the top of the project page was chosen from the best third of samples. On Hacker News, where the launch reached 407 points, one commenter pointed to a telltale wobble on slanted lines.
The bigger worry is misuse. A tool that copies a person's handwriting from a photo of a few words is a forgery aid, and a Hacker News commenter called it exactly that. Neither the blog post nor the GitHub page says anything about consent, forgery or safeguards, and the Apache 2.0 licence places no limits on what you do with the output. Faking someone else's writing on a cheque, a will, a contract or a note meant to deceive is forgery in most countries, whichever tool drew it.
Our take: PenGPT is a good toy and a good thing to learn from when it writes in your own hand or one from its library. Copying anyone else's hand belongs in the same box as signing their name, something you do only with their permission.
Where it earns its place
A wedding planner sending 80 handwritten-style place cards
Make printed cards that look written by hand without writing each one
Type each name into the browser page, pick one cursive hand and save each as an SVG for the printer. It costs nothing, but expect to redo words that come out hard to read.
A machine-learning student learning how sequence models work
Study a small, complete generative model end to end
Clone the repo, run the handwriting model with numpy alone and read the paper's ablations. Training the handwriting model takes about 8 minutes on an 8xA100 node, so experiments are cheap to rerun.
A person who wants letters to family written in their own hand
Turn typed text into something that looks like your own handwriting
Photograph a few words you wrote, run the photo script with your own Anthropic key, then write new text with the saved hand. Check every page before printing, since nearly half of generated words may not read back exactly.
Before you commit
- Setup
- The browser page needs nothing: it downloads a 5.8 MB model and writes. The code needs pip install numpy to write; copying a hand from a photo needs the [photo] extras, an ANTHROPIC_API_KEY and a 0.7 GB InkSight download on first use.
- Integrations
- A Python call returns each word's points, and the command line writes SVG, PNG and npy files. No hosted API, plugins or app.
- Data and privacy
- The browser page says nothing you type leaves it. The photo script sends cropped images of the words in your photo to Anthropic's API under your own key, so Anthropic's API terms apply. The training data is not released.
- Cost at scale
- Writing is free and runs on a laptop. Each photo copy costs a few Anthropic API calls on your key, and the code stops a run at $5.
- Limits
- Generated handwriting reads back exactly 54% of the time against 66% for real ink. Long text is written two words per call, the stroke order is guessed from scans, and the licence and docs set no rules on copying someone else's hand.
What’s good
- Free, with open weights under Apache 2.0
- Browser page runs on your device; the page says nothing you type leaves it
- Handwriting model is a 5.8 MB file and needs only numpy
- 1,192 print and cursive hands, saved as SVG strokes
- Can copy a new hand from a photo of a few words
What’s not
- Only 54% of generated words read back exactly by OCR, against 66% for real ink
- Copying a hand from a photo needs Python, a 0.7 GB download and an Anthropic API key
- Photo crops are sent to Anthropic's API to be read
- No consent checks, safeguards or misuse policy
- Research code from one author, with no support or roadmap
Best for
Hobbyists and developers curious about handwriting generation who want something free to play with or study.
PenGPT alternatives
PenGPT: common questions
- Is PenGPT worth it?
- PenGPT is a clever, free research model that writes convincingly by hand, and the same feature that makes it fun makes it an easy way to fake someone's writing. We rate it 3.5 out of 5.
- How much does PenGPT cost?
- Free. The browser page costs nothing, and the code and weights are open under Apache 2.0. Copying a hand from a photo calls Anthropic's API on your own key, billed by Anthropic; the code stops a run once it has spent $5.
- What are the downsides of PenGPT?
- Only 54% of generated words read back exactly by OCR, against 66% for real ink; copying a hand from a photo needs Python, a 0.7 GB download and an Anthropic API key; photo crops are sent to Anthropic's API to be read; no consent checks, safeguards or misuse policy; research code from one author, with no support or roadmap.
- Who is PenGPT best for?
- Hobbyists and developers curious about handwriting generation who want something free to play with or study.
- How much does PenGPT cost for a team or in production?
- Writing is free and runs on a laptop. Each photo copy costs a few Anthropic API calls on your key, and the code stops a run at $5.
- Is PenGPT safe for company data?
- The browser page says nothing you type leaves it. The photo script sends cropped images of the words in your photo to Anthropic's API under your own key, so Anthropic's API terms apply. The training data is not released.
- What are the best PenGPT alternatives?
- The closest alternatives we have reviewed are Recraft and Ideogram.
Answers checked Nov 27, 2026.