How to Do a Dotted Line in Illustrator
StyleFrame Team8 min read
To make a dotted line in Illustrator, select a path with a stroke, open the Stroke panel (Window > Stroke), and check Dashed Line. Set the Cap to Round, enter 0 for the dash, and set the gap to roughly twice your stroke width. Each dash then renders as a circle with even spacing. For curved paths, custom dot shapes, or dots that follow a spine, use the Blend tool, a custom brush, or Transform and Repeat instead.
Method 1: Stroke panel (fastest and most editable)
This is the method most designers should start with. The dots stay live, so you can change spacing, weight, or color at any time.
- Draw a path with the Pen, Pencil, Curvature, or Line Segment tool. You can also use any shape tool (Ellipse, Rectangle, Polygon, Star).
- Make sure the path has a stroke and no fill, or whatever fill you want.
- Open the Stroke panel with Window > Stroke (Cmd/Ctrl + F10). You can also use the stroke controls in the Properties panel.
- Check Dashed Line.
- Click the Round Cap button.
- Type 0 in the first dash field.
- Type a gap value in the first gap field. Twice your stroke weight is a good starting point.
The round cap is what turns dashes into dots. With a dash length of zero, the cap alone defines the dot, so its diameter equals the stroke weight. A 4 pt stroke gives you a 4 pt dot. A gap of 8 pt then leaves one dot-width of empty space between the dots. Lower the gap for tighter dots and raise it for sparser ones.
Fine-tuning how dots land on corners and ends
Two buttons next to the Dashed Line checkbox control how the pattern fits the path:
- Preserve exact dash and gap lengths keeps your numbers literal. Dots may be cut off at corners or at the end of the path.
- Align dashes to corners and path ends adjusts the spacing slightly so dots sit cleanly on corners and endpoints.
For rectangles, rounded boxes, and callout lines, the alignment option usually looks better. For a line that you'll animate or trim later, the exact option keeps spacing consistent along the whole length.
A limitation to know about
Dashed settings work on strokes created with the Pen, Pencil, Curvature, and Blob Brush tools, and on shapes. They can't be applied to strokes made with the Paintbrush tool, because those strokes use a brush definition instead. If a dashed line option is greyed out or does nothing, check the Appearance panel to see whether a brush is applied. You can swap the brush for a basic stroke or redraw the path with the Pen tool.
Method 2: Blend tool (dots along a custom spine)
The Blend tool is useful when you want dots of different sizes, different colors, or a gradual change in spacing.
- Draw one small circle at the start and a second circle at the end. They can be different sizes or colors.
- Select both and choose Object > Blend > Make (Opt/Alt + Cmd/Ctrl + B).
- Open Object > Blend > Blend Options.
- Set Spacing to Specified Steps for an exact dot count, or Specified Distance for consistent spacing.
- To make the dots follow a curve, draw a path, select it together with the blend, and choose Object > Blend > Replace Spine.
This approach gives you more design control than a dashed stroke. You can make dots shrink toward the end of a line, shift in color, or use a shape that isn't a circle. The tradeoff is that it's less flexible when the path length changes, since you'll need to recheck the step count.
Method 3: A dotted art or pattern brush
If you draw dotted lines frequently, such as map routes, dividers, or stitched-edge looks, a brush saves time.
- Draw a single dot.
- Drag it into the Brushes panel (Window > Brushes).
- Choose Art Brush or Pattern Brush and confirm.
- Adjust the options in the dialog, including size, spacing, and how the art stretches or repeats along the path.
- Draw a path and apply the new brush from the panel.
An Art Brush stretches artwork along a path, which can distort a dot unless you set it to scale proportionally or stretch between guides. A Pattern Brush repeats tiles and handles corners with separate tiles. For round dots, a Pattern Brush or a Scatter Brush often behaves more predictably. Brushes are a good fit when you want a hand-drawn feel, such as dots with slight size variation.
Method 4: Transform and Repeat (quick straight lines)
For a straight row of dots, the transform approach takes seconds.
- Draw a dot.
- Select it and choose Object > Transform > Move. Enter a horizontal distance, such as 12 pt, and click Copy.
- Press Cmd/Ctrl + D (Transform Again) as many times as you need.
This repeats both the move and the copy, giving you evenly spaced dots. It's a clean way to build a dot grid or a straight dotted rule. It doesn't follow curves, so use the Stroke panel or Blend tool for anything that bends.
Troubleshooting common problems
Dots look like short dashes. The cap is probably set to Butt or Projecting, or the dash value is above zero. Set the cap to Round and the dash to 0.
Dots look oval. This usually happens with an Art Brush that's stretching the artwork. Switch to a Pattern Brush or use the Stroke panel method.
Spacing is uneven at corners. Try the Align Dashes to Corners and Path Ends option, or adjust the gap by small increments until the pattern lands cleanly.
Dots disappear when scaled. Check Edit > Preferences > General for the Scale Strokes & Effects option. If it's off, resizing the path leaves the stroke weight unchanged, which changes how the dot-to-gap ratio looks. Toggle it, or use the Transform panel's Scale Strokes & Effects option.
You need real shapes instead of a stroke. Select the path and choose Object > Expand Appearance, then Object > Expand if needed. Each dot becomes a separate filled shape. This is useful for laser cutting, print production, or tools that don't interpret dash settings. Expanded dots are no longer editable as a dashed stroke, so keep a copy of the original.
Taking dotted lines into After Effects
For motion designers, the line rarely stays in Illustrator. Typical uses include animated route lines on maps, connector lines in infographics, callout leaders, and HUD elements. A few practical notes make the handoff smoother.
Decide where the dots will be defined. After Effects has its own dash and gap controls on shape layer strokes, along with a Dash Offset property you can keyframe. Offsetting the dashes makes dots appear to march along a path. If the line is simple, building it natively in After Effects may be easier than importing a dashed stroke.
Convert the artwork. Bring in your .ai file, then use Layer > Create > Create Shapes from Vector Layer. This turns paths into editable shape layers. After conversion, inspect the stroke settings. If the dash and cap settings didn't carry across as you expected, reapply them in the shape layer's stroke options. A quick preview before you build a full animation saves rework.
Animate with Trim Paths. Adding Trim Paths to a dotted stroke lets you draw the line on. With a round-cap dotted stroke, the dots appear in sequence as the end value moves from 0 to 100%. Keep spacing consistent by avoiding changes to path length mid-animation.
Use expanded dots for per-dot control. If you want each dot to pop in with its own scale or color, expand the appearance in Illustrator so each dot is its own shape. In After Effects, convert to shapes and use staggered keyframes or an Offset-based animator. Alternatively, use the Blend or Transform and Repeat approach, then organize the dots into groups on import.
Keep vector where possible. A continuously rasterized dotted line can alias when scaled or tracked. Keeping the line as a shape layer and collapsing transformations helps maintain crisp edges for camera moves.
Where Styleframe fits in a dotted-line workflow
Dotted lines are a vector problem, and Illustrator and After Effects are the right tools for building them. Styleframe is useful around the edges, when you need to style the surrounding footage or artwork so a clean dotted line sits convincingly in the shot.
Styleframe is an AI video and motion tool. For example, you could use it to give footage a hand-drawn, illustrated look based on your own style reference, then composite your Illustrator-built dotted route or annotation lines over it in After Effects.
Quick reference
For most jobs, the Stroke panel setup takes less than a minute and gives you a line you can edit, scale, and bring into After Effects. Reach for the other methods when you need more variation, repeatable styles, or individual dot shapes.