# Add a Prefix to Words

Quickly prepend a prefix to all words in text

> Canonical page: https://elysiatools.com/en/tools/text-add-prefix-words

- **Category:** Text Processing

- **Keywords:** text, prefix, add, words, prepend, beginning, word-level

## Overview

This utility allows you to instantly prepend a custom prefix to every word within a block of text, streamlining repetitive formatting tasks and data preparation.

## Inputs

- **Text Input** (textarea): Enter text to process...
- **Prefix** (text): Enter prefix to add to words...
- **Target Words** (select): Select which words to modify
- **Preserve Punctuation** (checkbox): Keep punctuation separate from prefixed words
- **Case Sensitive** (checkbox): Match words with case sensitivity

## When to use

- Standardizing variable names or code identifiers by adding a consistent namespace prefix.
- Preparing lists of keywords or tags for SEO and database entry.
- Formatting bulk text data for specific software requirements or documentation styles.

## How it works

- Paste your source text into the input area.
- Define the prefix string you wish to add to the beginning of your words.
- Select the target word category, such as alphabetic or numeric, to filter which words receive the prefix.
- Toggle optional settings like punctuation preservation to ensure your text structure remains intact.

## Use cases

- Adding a 'user_' prefix to a list of raw ID numbers for database migration.
- Prepending 'tag-' to a list of keywords to format them for a content management system.
- Standardizing CSS class names by adding a project-specific prefix to all selectors.

## Frequently asked questions

### Can I choose which words get a prefix?

Yes, you can filter by word type, including alphabetic, numeric, alphanumeric, or all words.

### Does this tool affect punctuation?

You can enable the 'Preserve Punctuation' option to ensure that punctuation marks remain attached to the original word structure rather than the prefix.

### Is the prefix addition case-sensitive?

The tool includes a case-sensitive toggle to ensure that your matching logic respects the original casing of your text.

### Can I use this for large blocks of text?

Yes, the tool is designed to handle large text inputs efficiently, processing all identified words in seconds.

### What happens if I select 'Custom Pattern'?

Selecting 'Custom Pattern' allows you to apply the prefix based on specific criteria defined by your input requirements.

## Related tools

- [Pangram Checker](https://elysiatools.com/en/tools/pangram-checker): Check if text is a pangram (contains every letter of the alphabet). Reports missing letters, used letters, and unique-letter count.
- [Add a Prefix to Text Lines](https://elysiatools.com/en/tools/text-add-prefix-lines): Quickly prepend a prefix to one or more text lines
- [Add a Suffix to Text Lines](https://elysiatools.com/en/tools/text-add-suffix-lines): Quickly append a suffix to one or more text lines
- [Add a Suffix to Words](https://elysiatools.com/en/tools/text-add-suffix-words): Quickly append a suffix to all words in text
- [Text Indenter](https://elysiatools.com/en/tools/text-indenter): Quickly add indentation to each text line
- [Text Justifier](https://elysiatools.com/en/tools/text-justifier): Quickly stretch spaces between words to make all text lines equal length
- [Text Prefix/Suffix](https://elysiatools.com/en/tools/text-prefix-suffix): Add prefix or suffix to each line or word
- [Add Random Letters to Words](https://elysiatools.com/en/tools/text-random-letter-inserter): Quickly insert random letters in words in text

## Samples

- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Text Prefix, Suffix, and Symbol Wrapping for Line and Word Batches](https://elysiatools.com/en/hubs/text-prefix-suffix-and-symbol-wrapping): Add prefixes and suffixes to text lines or words, wrap every value in quotes or backticks for SQL, config, and Markdown, and strip inherited numbering, bullets, and decoration from pasted lists.
