Turn perfectly straight digital lines into wobbly, pen-style ones. Make circles, arrows, underlines, and dotted dividers, then paste them into Figma or save SVG and PNG files.
Show generated SVG code
Hand-drawn lines, circles, and arrows as SVG paths
Perfectly straight lines can feel cold and mechanical. This generator adds random wobble to the control points of Bézier curves to imitate the uneven look of a pen. It makes rectangles, circles, arrows, stars, lines, waves, checkmarks, hearts, and X marks, and adds dotted or dashed strokes, hatch and cross-hatch fills, and a draw-on animation on the same screen. The result is real path data, not a filter, so it stays sharp at any size and can be edited in Figma or any SVG editor.
Where sketchy shapes work well
Circles and underlines in Figma
Figma has no built-in way to make a wobbly line. Generate a circle, underline, or arrow here, paste it onto the canvas, and use it to call out parts of a design.
Lo-fi wireframes
Rough boxes and lines make a layout look unfinished on purpose, which keeps feedback on structure instead of polish.
Highlights on slides and banners
Circle a word, underline a headline, or add a marker stroke with the Highlighter pen. Save a transparent PNG and drop it onto a slide or social graphic.
Notebook-style dividers
Dotted and dashed hand-drawn lines work as section dividers, cut lines, or journal decoration. The tool sets the stroke-dasharray values for you.
Underlines that draw themselves
Copy the animated SVG to make a headline underline or a checkmark that draws in when the page loads.
Whiteboard-style diagrams
Arrows, boxes, and stars with a loose pen feel give explainers and tutorials a friendlier look than straight vector lines.
Make and export a sketchy shape
- Pick a shape: rectangle, circle, arrow, star, line, wave, check, heart, or X mark.
- Set Roughness and Bowing for the amount of wobble, and turn on Double stroke if you want a sketched, traced-twice look.
- Choose the pen color, width, and opacity. Pick a line style (solid, dotted, dashed, dash-dot, or custom), and add a hatch fill to closed shapes.
- Click Regenerate until you like the shape. If you want the line to draw itself, turn on Draw-on animation and set the duration.
- Click Copy SVG code to paste into Figma, or use Save SVG, Save PNG, Copy path (d), or Copy JSX.
Note: To paste into Figma, copy the code, click an empty part of the canvas to clear any selection, then press Ctrl+V (Cmd+V on a Mac).
Settings that change the file
- Everything runs in your browser. Your settings and the generated paths are not uploaded, and the preview's paper texture is drawn without loading an image.
- A new random shape is generated when you change the shape, roughness, bowing, double stroke, hatching, or decimal places, or click Regenerate. Color, width, opacity, and line style changes keep the current shape. There is no undo, so save a version you like first.
- Higher roughness, Double stroke, and dense hatching add more path data. The tool shows the file size and anchor count so you can keep an eye on it. For web use, 0 decimal places gives the smallest code.
- Hatching only applies to closed shapes: rectangle, circle, star, and heart. Copy path (d) copies the outline only, without the hatch lines.
- The preview backgrounds are for checking only. Exported SVG and PNG files have no background. The canvas is 800 × 400, and the PNG is 1600 × 800.
Roughness and line style starting points
Suggested settings for a few common looks. The sliders go from 0 to 15 for Roughness, so adjust to taste.
| Look | Roughness | Double stroke and line style | Good for |
|---|---|---|---|
| Clean and minimal | 0.5 to 1.0 | Off, solid | Portfolios, subtle underlines |
| Rough sketch | 1.5 to 2.5 | On, solid | Wireframes, idea diagrams |
| Playful and handmade | 3.0 to 5.0 | On, solid with hatch fill | Social banners, kids' materials |
| Notebook and journal | 1.0 to 2.0 | Off, dotted or dashed | Dividers, cut-line decoration |
| Draw-on animation | 1.0 to 2.0 | Off (the line is solid while animating) | Headline underlines, checkmark effects |
Plain path data.
The tool outputs static SVG path data, so nothing like Rough.js has to run in the visitor's browser, and you can still edit every anchor in a design app.
Where to paste or open the result
Figma: copy the code, click an empty spot on the canvas, and press Cmd+V or Ctrl+V.
Illustrator, Affinity, Inkscape: click Save SVG and open the file.
React / Next.js: Copy JSX converts the attributes to camelCase so you can paste the SVG into a component.
Canva, slides, and other tools without SVG support: use Save PNG for a transparent image.
SVG tricks: dashed lines, draw-on animation, and recoloring
How the exported code works, so you can tweak it by hand once it is on your site.
How stroke-dasharray makes dotted and dashed lines
A dashed line in SVG comes from stroke-dasharray="dash gap". A dotted line uses a dash length of 0 together with stroke-linecap="round", so each zero-length dash is drawn as a round dot. The tool sets the values from your stroke width: Dotted is 0 and 2.4 times the width, Dashed is 4 and 3 times, and Dash-dot is 5, 2.5, 0, and 2.5 times. Custom takes pixel values. You can copy the same numbers into a CSS stroke-dasharray rule.
Draw-on animation with pathLength and stroke-dashoffset
A line that draws itself needs a dash as long as the path, then an offset that shrinks to 0. Normally that means measuring the path with getTotalLength(). Setting pathLength="1" tells the browser to treat the path as 1 unit long, so stroke-dasharray: 1; stroke-dashoffset: 1 animating to 0 works for any shape. The exported code uses this method, with an hd-draw class and a prefers-reduced-motion rule that turns the animation off.
Recolor the line with CSS and follow dark mode
Paste the SVG inline in your HTML or JSX, not through an img tag, so CSS can reach it. The exported outline path has a fixed stroke color. Change it to stroke="currentColor" and the line takes the text color of its parent, including in dark mode. A CSS rule such as path { stroke: currentColor; } also works because CSS overrides the attribute, but it changes the hatch lines too.
Resize the SVG without breaking the look
The exported SVG has viewBox="0 0 800 400" and fixed width and height attributes. For a fluid layout, set width: 100%; height: auto; in CSS. To stretch a line across a section of any width, add preserveAspectRatio="none", and add vector-effect="non-scaling-stroke" to the paths so the stroke width does not get squashed by the stretch.
Lines too heavy, animation broken, or paste not working
The SVG code is much larger than expected
High Roughness, Double stroke, and dense hatching all add anchor points. The file grows, and on a web page that means more code to download.
💡 See the solution▼
A hand-coded draw-on animation stops early or shows lines at different times
If the stroke-dasharray value doesn't match the real path length, the line stops short or appears all at once. Shapes with a double stroke or hatch fill make this worse because they contain several paths.
💡 See the solution▼
The code pastes into Figma as text instead of a shape
If a text field or the text tool has focus, pressing paste inserts the SVG code as a block of text rather than a graphic.
💡 See the solution▼
The shape you liked is gone after Regenerate
Every Regenerate click makes new random offsets, and the tool does not keep a history or a seed. Changing roughness, bowing, hatching, or decimal places also builds a new shape.
💡 See the solution▼
The line looks stretched or too thin after resizing
The exported SVG is 800 × 400 with fixed width and height attributes. Scaling it with CSS scales the stroke too, and stretching with preserveAspectRatio="none" distorts the stroke width.
💡 See the solution▼
Questions about Figma, dashed lines, and PNG export
Q.How do I add a hand-drawn line or circle in Figma?
A. Make a shape here, click Copy SVG code, then click an empty spot on the Figma canvas so nothing is selected and press Ctrl+V (Cmd+V on a Mac). Figma turns the pasted SVG into vector layers you can edit. If it pastes as text instead, click Save SVG and drag the file onto the canvas.
Q.Can I make a dotted or dashed hand-drawn line?
A. Yes. Under Line style, choose Dotted, Dashed, Dash-dot, or Custom. The tool adds a stroke-dasharray attribute to the outline path. Custom lets you set the dash length and gap in pixels. The hatch lines in a fill are never dashed.
Q.How does the draw-on animation work?
A. Turn on Draw-on animation and set a duration from 0.5 to 6 seconds. The SVG gets pathLength="1" plus a small CSS animation that moves stroke-dashoffset to 0, so you never have to measure the path length. While the animation is on, the line style is solid because the animation uses stroke-dasharray. The code also includes a prefers-reduced-motion rule that skips the animation for visitors who ask for less motion.
Q.Can I edit the result in a design app?
A. Yes. Click Save SVG and open the file in any editor that supports SVG, or paste the code into Figma. The paths are made of plain cubic Bézier curves, so you can move individual anchors and change the stroke width or color afterward.
Q.Can I save the line as a PNG?
A. Yes. Save PNG downloads a 1600 × 800 px image with a transparent background, twice the size of the 800 × 400 canvas. It shows the finished drawing, not the animation. Use it in tools that don't accept SVG, such as banners, slides, or social posts.
Q.What does Double stroke do?
A. It draws each line a second time with a little more wobble, so the shape looks like it was traced twice with a pen. It adds to the file size, so turn it off for a cleaner, lighter line.
Q.Why did my shape change after I clicked Regenerate?
A. Each shape uses new random offsets every time it is generated. Changing the shape, roughness, bowing, double stroke, hatching, or decimal places also generates a new one. Changing the color, width, opacity, or line style keeps the current shape. There is no undo, so copy or save a version you like before you regenerate.
Q.Can I use the SVGs in commercial projects or logos?
A. Yes. The paths are generated from the settings you choose, and you can use the output in websites, print, logos, and video projects.
Q.Is my work sent to a server?
A. No. The shape is generated in your browser, and your settings are not sent anywhere. The paper texture in the preview is drawn with inline SVG, so no outside image is loaded.
Q.Does the exported SVG include the preview background?
A. No. The Paper, White, Dark, and Clear backgrounds are only for checking how the line looks. The copied or saved SVG and PNG contain just the line and hatch strokes.
Your feedback
makes this tool better.
Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.