Free online text tool

Specified Position Text Addition

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.

Add Text in Specific Position

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Add Text in Specific Position Example

Before (add - at position 5)
HelloWorld
After
Hello-World

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Specified Position Text Addition do?

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.

Specified position text addition examples

Each example shows the text and the position used. Positions count characters, spaces included.

SettingBeforeText and positionAfter
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

How to add text at a specified position in each line

  1. 1
    Add your lines
    Type or paste your lines into the box, or import a text file.
  2. 2
    Enter the text and position
    Type the text to add and the position, which is the number of characters before the new text.
  3. 3
    Click Add Text
    The text is added in every line at once. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the lines where you need them.

When to add text at a position

Good for

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.

Check first

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.

Other tools

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.

Specified position text addition FAQ

What does the Specified Position Text Addition tool do?

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.

How do I add text at a position in 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.

How is the position counted?

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.

Can I count from the end of the line?

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.

What if a line is shorter than the position?

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.

What happens to empty lines?

An empty line has no characters, so it only gets the text when the position is 0. For any larger position it stays empty.

Does it count emoji and accented letters correctly?

Yes. Each visible character counts as one, so an emoji or a letter with an accent is not cut in half.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Modify Tools

Last updated: 2 November 2026