Insert Text at Position
Quick Tips
- • This tool runs entirely in your browser - your data stays private.
- • Press Ctrl+V (Cmd+V on Mac) to quickly paste text.
- • Use the Copy button to save your result to clipboard.
- • Bookmark this page for quick access!
Insert text at specific positions in each line.
Examples
20240115 (insert "-" at 5,8)
2024-01-15
1234567890 (insert "-" at 4,7)
123-456-7890
AABBCCDD (insert ":" at 3,5,7)
AA:BB:CC:DD
HelloWorld (insert " " at 6)
Hello World
Frequently Asked Questions
Positions are counted from 1 (first character) by default. Position 5 means after the 4th character. Negative positions count from the end: -1 is after the last character, -2 is before the last character.
You can choose to: skip the insertion for short lines, pad the line with spaces to reach the position, or append the text at the end. Select the behavior that matches your needs.
Yes, specify multiple positions and the text to insert at each. Positions are calculated from the original string, so insertions don't shift subsequent insertion points.
For a 10-digit number like "1234567890" to become "(123) 456-7890", insert "(" at position 1, ") " at position 4, and "-" at position 8, adjusting for the characters you're adding.
Yes, this tool inserts at positions regardless of what characters are there. Find and replace looks for specific text to replace. Use this when you know the position but not necessarily the content at that position.