Hand-Drawn SVG GeneratorSketchy Lines for Figma & Web

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.

Hand Drawn SVG Canvas
Background
Decimal places (fewer = smaller file)
Show generated SVG code
Shape
Line texture
Pen color
Line style (stroke-dasharray)
Fill (hatching)
Draw-on animation

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

  1. Pick a shape: rectangle, circle, arrow, star, line, wave, check, heart, or X mark.
  2. Set Roughness and Bowing for the amount of wobble, and turn on Double stroke if you want a sketched, traced-twice look.
  3. 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.
  4. Click Regenerate until you like the shape. If you want the line to draw itself, turn on Draw-on animation and set the duration.
  5. 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.

LookRoughnessDouble stroke and line styleGood for
Clean and minimal0.5 to 1.0Off, solidPortfolios, subtle underlines
Rough sketch1.5 to 2.5On, solidWireframes, idea diagrams
Playful and handmade3.0 to 5.0On, solid with hatch fillSocial banners, kids' materials
Notebook and journal1.0 to 2.0Off, dotted or dashedDividers, cut-line decoration
Draw-on animation1.0 to 2.0Off (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▼
Watch the Size and Anchors numbers under the buttons. For web use, keep Roughness around 1.0 to 2.0, switch Decimal places to 0, and widen the Hatch spacing. After pasting into a design app, a path-simplify command can reduce the points further.

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▼
Turn on Draw-on animation in the tool. It uses pathLength="1" on each path, so no length measuring is needed. The line style switches to solid while the animation is on, so dotted or dashed settings can't clash with it.

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▼
Click an empty spot on the canvas to clear the selection and make sure the Move tool is active, then press Ctrl+V (Cmd+V on a Mac). If that still fails, click Save SVG and drag the file onto the canvas.

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▼
Copy or save the SVG as soon as you like a result. Then use the color, width, opacity, and line style controls, which keep the shape you have.

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▼
Set width: 100% and height: auto in CSS to scale evenly. If you need to stretch it, add vector-effect="non-scaling-stroke" to the paths. Or raise the Stroke width setting before exporting.

Questions about Figma, dashed lines, and PNG export

Q.How do I add a hand-drawn line or circle in Figma?

Q.

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?

Q.

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?

Q.

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?

Q.

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?

Q.

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?

Q.

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?

Q.

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?

Q.

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?

Q.

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?

Q.

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.

User Feedback & Request

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.

Send feedback