Convert spaces after punctuation into nothing

Please log in or register to do it.

This tool converts spaces that immediately follow punctuation into nothing – effectively removing any whitespace that appears right after punctuation characters. You can choose from various modes: remove spaces after all punctuation, remove spaces only after specified punctuation characters, remove spaces except when following allowed punctuation, or replace the spaces after punctuation with a custom string. Simply enter your text and select the mode that best meets your needs.

Processing Modes:


Removes any whitespace immediately following any punctuation character (e.g., commas, periods, colons, semicolons, exclamation points, and question marks).

Removes spaces only after the punctuation characters you specify. Enter a comma‑separated list of punctuation characters (e.g., , , !).

Removes spaces after punctuation except when the punctuation is one of the allowed characters. Enter a comma‑separated list of allowed punctuation (e.g., ;, :).

Replaces the whitespace following punctuation with a custom string. Use {placeholder} as a placeholder in your custom format.

Examples:

Remove Spaces After All Punctuation

Every space immediately following any punctuation is removed.

Before:
Hello, world! How are you? I'm fine.
After:
Hello,world!How are you?I'm fine.

Remove Spaces After Specified Punctuation

Removes spaces only after the punctuation you specify (e.g., after commas and exclamation points).

Before:
Hello, world! How are you?
After (specifying "," and "!"):
Hello,world!How are you?

Remove Spaces Except After Allowed Punctuation

Removes spaces after punctuation except for those following allowed punctuation (e.g., allow spaces after colons).

Before:
Time: 10:00 AM, Date: 01/01/2024.
After (allowing ":" to retain its space):
Time: 10:00 AM,Date: 01/01/2024.

Replace Spaces After Punctuation with Custom Format

Replaces each space following punctuation with a custom placeholder.

Before:
Hello, world! How are you?
After (format "[{placeholder}]"):
Hello,[{placeholder}]world![{placeholder}]How are you?
Convert numbered lists into bulleted lists
Convert XML format into JSON format

Your email address will not be published. Required fields are marked *