How to create a blank line in a batch file

To create a blank line in a batch file add a open bracket or period immediate after the echo command with no space as shown below.

Tip: Adding @echo off at the beginning of the batch file will also turn off the echo and not show each of the commands.

@echo off
echo There will be a blank line below
echo.
echo Above line is blank
echo[
echo The above line is also blank.

An alternate solution could be to insert a blank ASCII character by typing ALT+255 in the batch file. Although this solution can work, we still recommend using the above solution since it works in all versions of MS-DOS and Windows.

Additional information

  • See the batch file and echo definitions for further information and related links.