Add an Underscore to List Items
Add underscores, bullets, or custom prefixes/suffixes to list items instantly. Supports numbered lists, bullet lists, and plain text lines.
About
Manually editing list items to add underscores or other markers is error-prone at scale. Missing one line in a 200-item list breaks formatting consistency in documentation, code comments, or data files. This tool processes each line of your input, detecting list items and applying a configurable underscore character (c) at the prefix position, suffix position, or both. It handles numbered lists (e.g., 1. Item), bulleted lists, and raw lines. The operation runs in O(n) time where n is the number of lines.
Note: this tool treats every non-empty line as a list item. Empty lines are preserved as-is for paragraph spacing. If your list uses a custom delimiter not covered by presets, use the custom character input to define your own marker. The tool does not alter the semantic content of your lines - it only prepends, appends, or wraps with the chosen character and separator.
Formulas
The transformation applied to each non-empty line Li in the input is defined by the placement mode m and the chosen character c with separator s (typically a space):
Where c is the underscore or chosen character, s is the separator string (space by default, empty if disabled), Li is the original line content, and Liβ² is the transformed output. Empty lines where trim(Li) = "" are passed through unchanged. The total operation runs in O(n) time complexity where n = number of lines.
Reference Data
| Character Name | Symbol | Unicode | Common Use | Example Output |
|---|---|---|---|---|
| Underscore | _ | U+005F | Markdown emphasis, file naming | _ Item text |
| Double Underscore | __ | U+005F Γ 2 | Python dunder, bold Markdown | __ Item text |
| Hyphen-Minus | - | U+002D | Markdown unordered lists | - Item text |
| En Dash | - | U+2013 | Ranges, typography | - Item text |
| Em Dash | - | U+2014 | Parenthetical statements | - Item text |
| Bullet | β’ | U+2022 | Unordered lists, presentations | β’ Item text |
| Right Arrow | β | U+2192 | Navigation, flow indicators | β Item text |
| Check Mark | β | U+2713 | Completed tasks, checklists | β Item text |
| Star / Asterisk | * | U+002A | Markdown emphasis, footnotes | * Item text |
| Plus Sign | + | U+002B | Diff additions, Markdown lists | + Item text |
| Tilde | ~ | U+007E | Approximation, strikethrough | ~ Item text |
| Pipe | | | U+007C | Table delimiters, OR logic | | Item text |
| Hash / Pound | # | U+0023 | Comments, headings, tags | # Item text |
| Double Angle | Β» | U+00BB | Quotation marks, breadcrumbs | Β» Item text |
| Triangle | βΆ | U+25B6 | Play buttons, list markers | βΆ Item text |