Free browser tool
Dash Line Generator
Make a horizontal rule from any dash — a long em dash line, a box-drawing divider or a decorative wave. Set the length, copy the result, paste it into plain text anywhere.
One character works best. A short string also repeats, but it can look uneven.
How to use the line generator
01
Pick the dash
Choose an em dash for prose, a box-drawing line for a diagram, or a wave for decoration. You can also type your own character.
02
Set the length
Drag the slider from 1 to 120 characters. Short lines survive narrow screens better; long rules suit desktop documents and code blocks.
03
Copy and paste
Click “Copy line” and paste the rule into your text. For aligned diagrams, use a monospaced font.
Copy-ready dividers
Choosing a line character
The em dash (—) is the safest choice for a plain-text rule in prose. The Box Drawing characters ─ (light) and ━ (heavy) connect cleanly in a monospaced font, while ═ draws a double rule. The wavy forms ⁓, 〜 and 〰 are decorative and belong in more playful layouts.
A long line is still just text: it wraps, it can break in narrow containers and it inherits the font. If you need a rule that always fits a web layout, use a CSS border instead. For the characters themselves, browse the line symbols and em dash categories.
Dash line questions
What is a dash line generator?
It repeats one dash character — an em dash, a box-drawing line, a wavy dash or any character you type — until it reaches the length you set. The result is a plain-text divider that you can copy into a document, README, email or post.
Which dash makes the best divider?
For prose and Markdown, an em dash (—) or a box-drawing light line (─) reads best. A heavy line (━) or a double line (═) draws more attention in terminal output and plain-text headings. A wavy dash (〜, 〰) is decorative rather than structural.
Why does my line break when I paste it?
Line length depends on the font and the container width. A proportional font measures each dash differently from a monospaced one, and narrow phone screens wrap long lines. Use a monospaced block and keep the line short enough for the target screen.
Can I use a custom character?
Yes. Type or paste any character into the custom field — a hyphen, an en dash, an underscore, a dot or a symbol — and the generator repeats that instead of the preset dash.
Is anything uploaded when I generate a line?
No. The generator runs entirely in your browser. The character, length and output stay on your device and are never sent to a server.