Navigate to Applications > Utilities > Terminal.

defaults write persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'

Then, paste the following and press enter:

killall Dock

The dock will now refresh itself and a spacer will appear. You can move it by dragging it around with your mouse. For additional spacers, simply repeat the step above. To remove a spacer, right click it and select "Remove from dock".

Did you know you can also auto-hide your dock in macOS?

Let your Mac update for you!
2 minutes

Updating your MacOS can be extremely time-consuming. While it's not necessarily difficult, not every Mac user has the time to keep their Mac up-to-date.