Specified Position Text Addition adds your text at a position you choose in every line. Paste your lines, enter the text and the position and copy the result. It is free and runs in your browser.
HelloWorld
Hello-World
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool inserts your text at the position you choose in every line. The position is the number of characters before the new text, so position 5 puts the text after the first 5 characters of each line.
Position 0 adds the text at the start of each line. You can also count from the end of the line, where position 0 means the very end. Lines that are shorter than the position are left alone, and the words in your lines are not changed.
Use it to add a dash inside a code, a separator in a phone number, or a marker at the same place in a whole list.
Each example shows the text and the position used. Positions count characters, spaces included.
| Setting | Before | Text and position | After |
|---|---|---|---|
| Position 5 | HelloWorld | Text to Add: - Position: 5 | Hello-World |
| Start of each line (position 0) | apple banana | Text to Add: > Position: 0 | > apple > banana |
| Counting from the end | 1234567 | Text to Add: , Position: 3 (from end) | 1234,567 |
| Short lines stay as they are | abcdefg ab | Text to Add: - Position: 4 | abcd-efg ab |
| End of each line (from end, 0) | a b | Text to Add: ; Position: 0 (from end) | a; b; |
| Emoji count as one character | a😀b | Text to Add: - Position: 2 | a😀-b |
| Phone number | 5551234567 | Text to Add: - Position: 3 | 555-1234567 |
Adding a dash or a space inside codes and numbers, putting a marker at the same place in every line, and fixing a list where each line has the same layout.
The position counts characters from the start of each line, spaces included, unless you tick Count from the end. Lines shorter than the position are not changed. Use Undo right after if the result is not what you wanted.
To add text at the start and end of each line, try Prefix Suffix. To add text again and again after a number of characters, try Add String After Number of Characters.
It adds your text at a position you choose in every line. If the text is a dash and the position is 5, the dash goes after the first 5 characters of each line.
Type or paste your lines, enter the text to add and the position, and click Add Text. The new lines replace the text in the box. Click Copy to use them, or Undo to go back.
The position is the number of characters before the new text. Position 0 puts the text at the start of the line and position 3 puts it after the first 3 characters. Spaces and punctuation count as characters.
Yes. Tick Count from the end of each line. Then position 0 puts the text at the end of the line and position 3 puts it before the last 3 characters.
It stays as it is. Only lines that have at least as many characters as the position get the text. A line with exactly that many characters gets the text at its end.
An empty line has no characters, so it only gets the text when the position is 0. For any larger position it stays empty.
Yes. Each visible character counts as one, so an emoji or a letter with an accent is not cut in half.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 2 November 2026