添加前缀/后缀

为每行添加前缀或后缀。

文本工具

如何使用 添加前缀/后缀

  1. 1Paste your multi-line text
  2. 2Enter your desired prefix and/or suffix
  3. 3Click the apply button
  4. 4Copy or download the result

关于 添加前缀/后缀

Add Prefix & Suffix lets you prepend and/or append any text to every line of your input. This is extremely useful for bulk formatting: adding quotes around each line, wrapping lines in HTML tags, adding numbering, creating SQL INSERT statements, or adding commas for array literals.

You can add just a prefix, just a suffix, or both at the same time.

常见问题

Does it apply to empty lines?

No. Prefix and suffix are only added to non-empty lines.

Can I add both a prefix and suffix at once?

Yes. Enter values in both fields and click Apply Both.