Free online text tool

Remove Spaces From Text

Remove Spaces deletes every space from the text you paste. Paste your text, click the button and copy the result. It is free and runs in your browser.

Remove Spaces from Text Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Space Removal Example

Before
This tools removals all the spaces in your sentence.
After
Thistoolsremovalsallthespacesinyoursentence.

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Remove Spaces do?

This tool deletes every space from your text and joins the words together. Letters, numbers, punctuation and line breaks stay as they are.

It removes ordinary spaces and also non-breaking spaces and other space characters that look like a space, such as those copied from web pages. Tabs and line breaks are kept unless you tick the options to remove them too.

Use it to clean up codes, serial numbers, phone numbers, hashtags, usernames or any text that must have no spaces.

Remove spaces from text examples

Each example shows the options used. Unless an option is named, both options are off.

SettingBeforeAfter
Basic example
This tools removals all the spaces in your sentence.
Thistoolsremovalsallthespacesinyoursentence.
Many spaces in a row
a  b   c
abc
Several lines
  Hello world  
  Bye  
Helloworld
Bye
Non-breaking space
a b
ab
Tabs kept (default)
a	b c
a	bc
Also remove tabs, on
a	b c
abc
Also remove line breaks, on
a b
c d
abcd

How to remove spaces from text

  1. 1
    Add your text
    Type or paste your text into the box, or import a text file.
  2. 2
    Choose the options
    Leave them unticked to remove spaces only. Tick an option to remove tabs or line breaks as well.
  3. 3
    Click Remove Spaces
    Every space is removed at once. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the result where you need it.

When to remove spaces from text

Good for

Cleaning up codes, serial numbers, phone numbers, hashtags and usernames, and any text that must be written without spaces.

Check first

All the spaces go, so the words run together and cannot be told apart again. The result replaces your text, so use Undo if you need the original.

Other tools

To keep one space between words try Remove Extra Spaces. To swap spaces for another character try Replace Spaces.

Remove spaces from text FAQ

What does the Remove Spaces tool do?

It deletes every space from the text you paste, so the words are joined together. Everything else stays as it is.

How do I remove spaces from text?

Paste or type your text and click Remove Spaces. The result replaces the text in the box. Click Copy to use it, or Undo to go back.

Does it remove spaces at the start and end of a line?

Yes. Every space is removed, including those before the first word and after the last word of each line.

Does it remove tabs and line breaks?

Not by default, so your lines stay as they are. Tick Also remove tabs or Also remove line breaks to remove those too.

Does it remove non-breaking spaces?

Yes. Non-breaking spaces and other space characters, such as the wide space used in Chinese and Japanese text, are removed as well as normal spaces.

Can I keep one space between words?

Not with this tool, because it removes all spaces. To keep a single space between words use Remove Extra Spaces.

What if my text has no spaces?

The tool shows a message and leaves your text as it is.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Remove Tools

Last updated: 12 November 2026