How to add comma in the end of each line in Word document?
Suppose you have a list of data in a Word document, and now you want to add a comma at the end of each line, like in the screenshot below. How can you do it quickly without adding the commas manually one by one?

Add a comma to the end of each line in a document using Find and Replace
You can easily add a comma to the end of each line in Word by using the Find and Replace function. Here's how:
- Select the content where you want to add a comma at the end of each line, then press Ctrl + H to open the "Find and Replace" dialog box.
- In the dialog box, type "^p" (indicating the end of a line) in the "Find what" textbox, and ",^p" (to add a comma at the end of each line) in the "Replace with" textbox.
- Click "Replace All". A dialog will appear asking if you want to search the rest of the document. Click "Yes" or "No" depending on your needs.
Commas have now been added to the end of each line in the selected content.
Add a comma to the end of each line in multiple documents with Kutools for Word
Using Kutools for Word's "Batch Replacement" feature offers a major advantage over Word's built-in Find and Replace, especially for processing multiple documents. You can apply the change across many files in just a few clicks.
- On the "Kutools" tab, select "Batch Replacement".
- In the "Batch Find and Replace" dialog box, do the following:
- Click "Add Row" to insert a rule row.
- In the "Find" field, type "^p" (indicating the end of a line), and in the "Replace" field, type ",^p" (to add a comma at the end of each line).
- Click "Add", then choose "Add Files" or "Add Folder" to include the documents where you want to add a comma to the end of each line.
- Click "Replace" to process all selected documents.
- The dialog will switch to the "Preview Result" tab showing how many replacements were made. Click "Close" to finish.
That's it! A comma has been added to the end of each line in each selected document.
Add a comma to the end of each cell in Excel with Kutools for Excel
If you want to add a comma at the end of each cell in Excel, use Kutools for Excel's "Add Text" utility to complete the task quickly.
Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!
After installing Kutools for Excel, follow these steps:
- Select the cells you want to modify, then click "Kutools" > "Text" > "Add Text".
- In the "Add Text" dialog, type a comma "," into the "Text" field and check the "After last character" option.
- Click "Apply" or "OK" to insert a comma at the end of each selected cell.
Demo: How to add comma at end of cell or text in Excel
Tabbed Browsing & Editing for Multiple Word Documents/Excel Workbooks, Just Like in Chrome and Edge! |
Just like browsing multiple webpages in Chrome, Safari and Edge, Office Tab lets you open and manage multiple Word documents or Excel workbooks in one Word window or Excel window. Switching between documents or workbooks is now simple with a click on their tabs! |
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...
π Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...
β Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...
π§Ή Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...
β Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...
π Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...
β Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...
π Supports 40+ Languages: Use Kutools in your preferred language β supports English, Spanish, German, French, Chinese, and 40+ others!

Best Office Productivity Tools
Kutools for Word - 100+ Tools for Word
- π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish / Super Translate / AI Redaction / AI Proofread
- π Document Mastery: Split Pages / Merge Documents / Batch Convert to PDF
- β Contents Editing: Batch Find and Replace / Resize All Pictures
- π§Ή Effortless Clean: Remove Extra Spaces / Remove Section Breaks
- β Creative Inserts: Insert Thousand Separators / Insert Check Boxes / Create QR Codes
- π Supports 40+ Languages: Kutools speaks your language β 40+ languages supported!