Tool to remove spaces in characters strings. A space can be embodied by a tab, a line break, and so on, spacings for which it is sometimes necessary to use this remover for text.
Spaces Remover - dCode
Tag(s) : Data Processing
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A space is an invisible character used to separate words in text. In computing, space is represented by the character .
There are also other types of spaces, such as tabs, newlines, different sizes of breakable or non-breaking spaces.
The presence of space can sometimes cause problems, especially when there are too many of them or when they are poorly placed. This is why it is sometimes necessary to remove them or replace them with other characters.
Spaces are in fact characters like the others, except they are invisible. To delete them in a text is to search for all characters with the code space and to perform their removal (or replacement).
Example: D C O D E without spaces becomes DCODE
The Unicode standard defines several characters as spaces: space or non-breaking space, to which add also line breaks or tabs special characters.
In word processors, it is sometimes difficult to pinpoint whether there is 1 or 2 spaces between words, one method is to do a search and replace of (space)(space) by (space) and repeat the operation if needed (for triple or quadruple spaces).
The operation of removing spaces at the beginning or end of strings is called trim.
dCode retains ownership of the "Spaces Remover" source code. Any algorithm for the "Spaces Remover" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Spaces Remover" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Spaces Remover" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Spaces Remover" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Spaces Remover on dCode.fr [online website], retrieved on 2025-04-16,