← All postsPerson using Invisible Text Generator on a laptop for a real layout testing task

Test a Sign-Up Form With Blank and Zero-Width Characters

Use six invisible Unicode characters to check how your form, database and UI handle names that look empty. Includes regex fixes and byte counts.

invisible text generatorzero-width charactersform validationUnicode testingQA testingFreeDailyProtext toolsbrowser tools
4 min readText & Writing

A display-name field is marked required, your code trims whitespace, and the QA ticket says it works. Then someone pastes a single character that looks like nothing, passes validation, and your leaderboard now has a blank row. Invisible Text Generator produces exactly those characters so you can test your own forms and layouts before a user stumbles into the problem.

The clip below shows how the tool produces blank characters for bios and fields.

Generate invisible text for blank bios

Generate invisible text for blank bios

The six characters on offer

The tool offers six variants, each shown with its Unicode code point and a one-line note.

  • Braille Blank, U+2800. Has real width and is the one the tool recommends because most apps treat it as non-empty.
  • Hangul Filler, U+3164. A wide blank often accepted in usernames and game names.
  • Zero-Width Space, U+200B. Truly invisible, but many apps strip it.
  • Zero-Width Non-Joiner, U+200C. Invisible and sometimes survives where U+200B is removed.
  • Zero-Width Joiner, U+200D. Invisible, and it can alter how an adjacent emoji is drawn.
  • Invisible Line Break. A Braille Blank followed by a newline, for multi-line fields.

A slider sets how many to produce, from 1 to 20. Copy Invisible Text puts them on the clipboard, and a test box beneath lets you paste the result back and read the code points it contains, so you can prove what actually landed in a field.

Why a trim check does not catch them

Plain JavaScript trimming removes spaces, tabs, newlines and the non-breaking space. It does not remove any of the six characters above, and the whitespace class in a regular expression does not match them either. So a check such as "trimmed length is zero" lets all six through. To the user the field looks empty; to your code it is a valid three-byte string.

Byte counts matter for storage. Each of these characters takes three bytes in UTF-8 even though it shows as one character, so 20 of them occupy 60 bytes. A database column limited to a number of bytes can reject a name that looks short on screen, and a character limit in the interface may disagree with the one in the back end.

A test plan for one text field

Run the following with the form you own or are authorised to test.

  1. In the tool, choose Braille Blank, set the count to 1, and press Copy Invisible Text.
  2. Paste it into the field and submit. Record whether the form accepts it.
  3. Repeat with Hangul Filler, then with each zero-width variant. Note which ones pass.
  4. Repeat with a count of 20, to see how the layout copes with a long blank run.
  5. Mix with real text: type "Dana", paste one Zero-Width Space after it, and save. Then try to register plain "Dana". If both are accepted, uniqueness checks compare raw strings and look-alike duplicates are possible.
  6. Paste the saved value into the tool's test box, which lists each code point, to confirm what was stored.
  7. Open the pages that display the value: profile, comments, leaderboard, email subject. Look for empty links, collapsed rows, or an avatar with no readable name.

What to look for in the layout

A blank name can leave a clickable link with nothing to click, a table row with zero visible content, or a mention that notifies someone but shows no text. Long runs of a width-bearing blank, such as Braille Blank or Hangul Filler, can push other elements sideways or add a horizontal scrollbar when the container is narrow. A zero-width space is also a permitted line-break point, so it can make text wrap in odd places, while the joiner characters do not allow a break at all.

Also check copy and search. Text containing a hidden character looks identical to the clean version but will not match a search, a duplicate detector or an exact comparison.

Fixing what you find

The usual remedy is to normalise input on the server and, ideally, in the browser too. Reject or strip a defined set of invisible code points, then require at least one visible letter or digit. A JavaScript pattern that matches a string made only of whitespace and these characters is:

^[\s​-‍⠀ㅤ]*$

Paste it into Regex Tester, which runs the JavaScript engine of your browser, and try it against the test strings you generated. The pattern also includes the byte order mark U+FEFF, which the generator does not produce but which often arrives from copied files. To remove those characters from a longer string, use the same set without the anchors and the star, and replace matches with nothing. Unicode property escapes for the format category are broader still, but they need careful testing.

To see the raw bytes, encode a pasted blank in URL Encoder. Braille Blank becomes %E2%A0%80 and a zero-width space becomes %E2%80%8B, which makes an otherwise invisible character visible in a bug report.

Common mistakes

  • Treating the test as one character. Try each variant, because platforms filter specific ranges and a form may block one while accepting another.
  • Stopping at the form. The saved value matters, so check the database and every page that shows it.
  • Relying on length alone. A string of ten invisible characters is long but empty to a reader.
  • Forgetting that the joiner can change nearby emoji, which matters if names allow emoji.
  • Testing someone else's service. Use these only on products you own or have permission to test.

A note on responsible use

The tool itself asks that blank text is not used to impersonate others, evade moderation or mislead people, and some platforms remove these characters anyway. Treat it as a test fixture, not a disguise. For more helpers of this kind, browse the text tools category.

Which field in your product worries you most, usernames, bios or comment bodies? Tell us on the contact page.

Open Invisible Text GeneratorOpen Regex TesterOpen URL Encoder / Decoder