Tools84

TEXT FORMATTING / A PRACTICAL GUIDE

How toadd a prefix or suffix to every line

Add the same prefix or suffix to every line.

Wrap text lines with a repeated prefix, suffix or both, while retaining their current order.

Follow the guide
A real before-and-after example
Before Input for add prefix to text lines

The original source text.

After Actual output for add prefix to text lines

The downloaded text result.

The comparison uses the original input and the actual downloaded result.
Advertisements
QUICK VIDEO TUTORIAL Add a prefix to every line Add a prefix to every line English narration Watch the video

Add a prefix to every line

Advertisements

Wrap text lines with a repeated prefix, suffix or both, while retaining their current order. Follow the exact input and settings below to reproduce this example. Open Add Prefix to Text Lines.

01

Prepare the source text

Open Add Prefix to Text Lines and choose Write or paste text, or upload a supported UTF-8 text file. The upload opens the editor; it does not run the tool. This example uses the exact source shown in the comparison.

Maximum input and result: 1 MB of UTF-8 text, with a 1,048,576-character input ceiling. Expanding transformations must also fit the result limit.

Use the exact example input
apple
banana

This text operation runs in your browser; its source and result are not sent for conversion. A draft may be kept in this browser tab when session storage is available. Clear removes the current draft; download important work before closing the tab.

02

Choose the settings

For the recorded example, use these settings: Prefix: [; Suffix: ].

Use these fields for bullet characters, quotation marks, labels or a repeated closing delimiter. Either field may be empty. The tool uses the same exact strings on every line and does not interpret them as markup, code or a pattern. Original spaces inside each line are retained.

Prefix
[
Suffix
]

The example in this guide

Verified in the i2TEXT browser workflow on November 11, 2026.

Input
example.txt
Output
add-prefix-to-text-lines.txt
Saved result
16 bytes
03

Apply and inspect the result

Select Add Prefix to Text Lines when the input and settings are ready. In the saved example, the result begins: "[apple]".

Empty lines receive the prefix and suffix as well. This does not validate the resulting text as a programming language or data format.

04

Save the version you reviewed

Review the current result, then use Download text to save a TXT file. The actual download in this example is named add-prefix-to-text-lines.txt. Copy and download use the current result, so make any final wording changes before saving. Continue to can carry the result into a compatible next tool, where you review it before running another operation.

The reviewed copy is ready

example.txtadd-prefix-to-text-lines.txt

A FEW USEFUL DETAILS

Common questions

Which settings produced this example?

Prefix: [; Suffix: ].

What should I check before using the result?

Empty lines receive the prefix and suffix as well. This does not validate the resulting text as a programming language or data format.

Where is this text processed?

This text operation runs in your browser; its source and result are not sent for conversion. A draft may be kept in this browser tab when session storage is available. Clear removes the current draft; download important work before closing the tab.

YOUR TURN

Try Add Prefix to Text Lines with your own text.

Use your own source and review the result before sharing.

Open Add Prefix to Text Lines

Image detail

Language38

English العربية Français Italiano Deutsch Español Português Nederlands Русский Türkçe 日本語 中文 हिन्दी Bahasa Indonesia Bahasa Melayu 한국어 Tiếng Việt ไทย Polski Svenska Українська Norsk বাংলা Ελληνικά فارسی اردو Čeština Dansk Magyar Română Suomi Български Filipino ქართული Slovenčina Azərbaycanca עברית Slovenščina

Choose from 38 interface languages.