CleanRows ยท Google Sheets guides

How to remove line breaks and hidden characters in Google Sheets

Replace in-cell line breaks with spaces and strip non-printing characters from imported data.

Replace line breaks with a space:

=SUBSTITUTE(A2, CHAR(10), " ")

Any line break style:

=REGEXREPLACE(A2, "[\r\n]+", " ")

Remove non-printing characters:

=CLEAN(A2)

CleanRows โ†’ Clean โ†’ Remove line breaks & hidden characters also removes zero-width spaces that CLEAN misses.

Do it in two clicks inside Google Sheets. CleanRows highlights, deletes or moves duplicates by the columns you pick, ignores case/spaces/accents and compares two sheets. Free up to 1,000 rows. Get CleanRows โ†’

More guides

Free online duplicate remover (CSV / list)