Generated structure
The generated SVG defines an arc path in defs and uses textPath to place text along that path.
Use cases
Use text-on-path SVGs for badges, labels, decorative headers, diagrams, and typography experiments.
Generate SVG text that follows a smooth path using textPath.
Page context
SVG Text on Path generates SVG text that follows a smooth path using textPath.
The generated SVG defines an arc path in defs and uses textPath to place text along that path.
Use text-on-path SVGs for badges, labels, decorative headers, diagrams, and typography experiments.
Generate SVG text that follows a smooth path using textPath.
<svg xmlns="http://www.w3.org/2000/svg" width="520" height="180" viewBox="0 0 520 180" role="img" aria-label="Generated SVG text on path"><rect width="520" height="180" rx="24" fill="#f8fafc"/><defs><path id="arc" d="M60 122 C150 24 370 24 460 122"/></defs><path d="M60 122 C150 24 370 24 460 122" fill="none" stroke="#99f6e4" stroke-width="8" stroke-linecap="round"/><text font-family="Inter, Arial, sans-serif" font-size="30" font-weight="700" fill="#0f766e"><textPath href="#arc" startOffset="50%" text-anchor="middle">SVG text on path</textPath></text><circle cx="60" cy="122" r="7" fill="#f59e0b"/><circle cx="460" cy="122" r="7" fill="#f59e0b"/></svg>