Don't fall into the trap of looking only at watts and thinking that more power is always better. A 50-liter compressor with a 2 kW motor is going to be a beast in your garage - expensive, noisy, and it'll take up all your space. For occasional jobs (nail gun, air gun, maybe a pneumatic drill now and then) you need something more modest.
Look for a model around 20-30 liters max, preferably vertical or compact horizontal, with a motor between 800 and 1200 watts. Brands like Einhell, Cevik, or Black+Decker have decent options in that range at reasonable prices. What matters is that you check the l/min it delivers at your working pressure (usually 8 bar), not just the tank capacity. If you see something like "40 l/min at 8 bar," that gives you a clear idea of what you can do without waiting for it to refill constantly.
One thing nobody mentions: before you buy, go to a hardware store and handle the models in person. Noise is a real factor when you've got it at home, and some compressors sound like a psycho drill. If it's really loud, you'll end up only using it when you won't bother anyone. Also check if it comes with a basic accessory kit (blow gun, quick connector) because buying it all separately gets expensive and then you regret it.