A signature upload is usually small, for example 140 × 60 pixels and under 20 KB, but it must still be clear. Here is a reliable way to prepare one from a pen and paper.
Sign on the right paper with the right pen
Use plain white paper and a dark blue or black pen with a medium tip. A thin pen can vanish after the picture is shrunk. Sign inside a box about the size of a stamp so the strokes are not too tiny after resizing.
Take a clean photo or scan
Place the paper flat in even light, with no shadow from your phone or hand, and take the picture straight from above. A scanner at 200 DPI is ideal. Make sure the whole signature is inside the frame with some margin.
Crop closely
Cut away the empty paper so the signature fills the frame. This matters because a form's pixel size is small, and any empty space makes your signature even smaller. A crop tool that trims to the ink does this automatically.
Clean the background
If the paper looks grey or has shadows, a background remover turns the paper pure white and keeps the ink dark. Check that thin strokes did not break up.
Resize and compress
Set the exact width and height from the form's notice, and the maximum KB. Signatures are mostly white so they compress well, but a very small limit such as 10 KB can be tight. If the tool says the limit cannot be reached, allow a few KB more or a smaller pixel size, if the form allows it.
Final check
Open the final file at actual size. If you cannot read your signature there, the form's reviewers will not either. Keep this file safe, since many portals ask for the same signature again later.