What Is the Diagonal Text Generator?
The Diagonal Text Generator formats each character of your text on its own line, indented one position further than the last — creating a staircase or diagonal pattern when displayed in a monospace font. For Down-Right mode, character at index i is preceded by i × indent spaces. Up-Right reverses this: (n−1−i) × indent spaces. Zigzag alternates between 0 and indent leading spaces. You can also replace leading spaces with a custom character (like · or _) for decorative filled staircases.
How to Use the Diagonal Text Generator
- Enter your text — spaces are stripped automatically (each character gets its own line).
- Choose direction — Down ↘ (classic staircase), Up ↗ (reverse staircase), or Zigzag ⟨⟩ (alternating V-pattern).
- Set indent size — 1 to 6 spaces per step; wider indent = wider staircase.
- Optional: set padding character — replace leading spaces with
·,_, or any single character for a decorative fill. - Copy Result — paste into a text editor, social media bio, README, or ASCII art document.
Where Can You Use Diagonal Text?
ASCII Art & README Files
GitHub README files and Markdown documents render in monospace code blocks where staircase patterns display correctly.
Social Media Bios
Platforms like Twitter/X and Instagram support Unicode text in bios — paste a short word as a staircase for a unique profile style.
Code Comments
Add diagonal decorations to section separators or file headers in code comments for a visual style in terminal-rendered output.
Terminal & CLI Art
Shell scripts and terminal banners rendered in monospace fonts display diagonal text with perfect character alignment.
Directions and Options Available
- Down-Right (↘) — each character indented one step further right; creates a descending staircase.
- Up-Right (↗) — each character indented one step less; creates an ascending staircase.
- Zigzag (⟨⟩) — alternates between 0 and indent leading spaces; creates a V-shape pattern.
- Indent size (1–6) — controls how many spaces separate each step; wider means a shallower angle.
- Padding character — replaces spaces with any visible character (
·,_,*,-) for a filled staircase effect.
Best Practices and Limitations
- Spaces in input are stripped: Spaces between words are removed because each character occupies its own indented line. For a multi-word diagonal art piece, run each word separately and stack the results.
- Proportional fonts destroy alignment: Diagonal text only aligns correctly in monospace fonts (Courier, JetBrains Mono, etc.). Platforms using proportional fonts — most social media, Google Docs default view — will not preserve the staircase shape.
- Long words produce very wide output: A 20-character word at indent 4 requires 76 characters of leading whitespace for the last character. Keep input to 10–15 characters for readable results in narrow editors.
Share This Tool
Help text artists create diagonal ASCII patterns for free!