— Insert Text at Position

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

Input
20240115 (insert "-" at 5,8)
Output
2024-01-15
Input
1234567890 (insert "-" at 4,7)
Output
123-456-7890
Input
AABBCCDD (insert ":" at 3,5,7)
Output
AA:BB:CC:DD
Input
HelloWorld (insert " " at 6)
Output
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.

Cookie Preferences

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Cookie Preferences

Manage your cookie settings

Essential Cookies
Always Active

These cookies are necessary for the website to function and cannot be switched off. They are usually set in response to actions made by you such as setting your privacy preferences or logging in.

Functional Cookies

These cookies enable enhanced functionality and personalization, such as remembering your preferences, theme settings, and form data.

Analytics Cookies

These cookies allow us to count visits and traffic sources so we can measure and improve site performance. All data is aggregated and anonymous.

Google Analytics _ga, _gid

Learn more about our Cookie Policy