Toolvist

Añadir prefijo y sufijo a las líneas

Añade un prefijo o sufijo a todas las líneas de texto a la vez.

0 líneas procesadas

Herramienta para añadir prefijo y sufijo a líneas gratuita

Añade un prefijo y/o sufijo a cada línea de texto en un clic. Es perfecto para convertir una lista simple en viñetas, envolver las mismas comillas alrededor de cada línea, anteponer guiones o construir valores separados por comas.

Related list operations live in the Remove Duplicate Lines and Sort Lines tools, and the Text Column Formatter is the right next step if the decorated list needs to be aligned into columns.

Cómo usar Prefijo y sufijo

  1. 1 Paste your list into the input area, one item per line.
  2. 2 Type the text to add at the start of each line and, if you need it, the text for the end.
  3. 3 Set the line range if only part of the list should be modified.
  4. 4 Copy the result; the preview updates as you type.

Cómo usarlo

Pega tus líneas, escribe el prefijo y/o sufijo que quieras, y el resultado se actualiza al instante. También puedes saltarte las líneas en blanco y elegir si el prefijo/sufijo se aplica a cada línea o solo a la primera y la última.

  • Antepone y añade texto a cada línea a la vez
  • Opción de saltarse las líneas vacías
  • Elige entre cada línea o solo las líneas exteriores
  • Copia el resultado con un clic

Usos comunes

Envolver cada línea entre comillas para una cláusula SQL IN, convertir una lista en una lista con viñetas de Markdown, añadir etiquetas HTML alrededor de cada elemento, o anteponer una etiqueta a las líneas de log. Ediciones por lotes como estas son tediosas a mano y triviales con esta herramienta.

Preguntas frecuentes

When is adding a prefix to every line useful?

Mostly when turning a plain list into code or structured data. Adding a quote to the start of each line and a quote plus comma to the end converts a column of names into a JavaScript or Python array literal in one action. Adding a URL prefix to a list of slugs turns them into full links. Both are the kind of mechanical edit that is tedious by hand and trivial programmatically.

Can it number the lines as well as add text?

Yes, if the numbering mode is enabled, each line receives a sequential number that you can place inside the prefix and suffix. Combined with a text marker this gives you a quick inventory list, a changelog numbering scheme, or the row labels for a table.

Will it skip blank lines?

That is a setting. Leaving blank lines untouched is usually right, because a blank line inside a code block or a paragraph break will break if it suddenly acquires a quote character. Enabling the option to decorate blank lines too is for cases where every single line genuinely needs the same treatment.

Herramientas de texto relacionadas

Ver todo en Herramientas de texto →

También te puede interesar

Herramientas de otras categorías que suelen combinarse con Prefijo y sufijo:

Explorar el directorio completo →