Skip to content
Google Sheets

CLEAN function in Google Sheets

Returns the text with the non-printable ASCII characters removed.

=CLEAN(text)

CLEAN syntax and parameters

One argument, one required.

  • textstringRequired

    The text whose non-printable characters are to be removed.

CLEAN examples

Formulas you'll actually reuse.

  1. Strip non-printing characters from text pasted out of a PDF:

    =CLEAN(A2)
  2. The full cleanup: non-breaking spaces, then control characters, then extra spaces:

    =TRIM(CLEAN(SUBSTITUTE(A2, CHAR(160), " ")))

    Result"Maria Lopez"

CLEAN in Excel

Same name — your formula ports as-is.

Try CLEAN in the playground

Edit the example — nothing to install.

Preloaded with the CLEAN formula from Example 1 — change anything and watch it respond.

Loading the editor…