Add New Lines Between Lines
Insert a custom number of blank lines between each non-empty line of your text. Useful for formatting, code, or preparing text for specific applications.
Results
Instructions
- Paste or type your text into the input box. Each line will be processed.
- Example: Line 1\n\nLine 2\n\n\nLine 3
- Enter the number of blank lines you want to add between each non-empty line (e.g. 2).
- Click Convert to see your text with the specified number of blank lines inserted between each line.
- Example output (with 2 lines): Line 1\n\n\nLine 2\n\n\nLine 3
- All empty lines in your input will be ignored.
Frequently Asked Questions (FAQs)
What happens to empty lines in my input?
All empty lines are ignored. Only non-empty lines are kept and separated by the number of blank lines you specify.
Can I add more than one blank line?
Yes, you can add as many blank lines as you want between each non-empty line.
What if I enter a negative or zero value for lines?
The tool will treat zero or negative values as zero, so no extra lines will be added.
Will the tool work with very large texts?
Yes, the tool is designed to handle large multi-line text inputs efficiently.
API Usage
API Usage
This tool provides an API for programmatic access.
Endpoint: POST /tools/add-newlines-between/api/
Request Body: { "text": "Line 1\n\nLine 2\n\n\nLine 3", "lines": 2 }
Response: The response will be the processed text with the specified number of blank lines between each non-empty line. { "result": "Line 1\n\n\nLine 2\n\n\nLine 3" }