Until now I believed that 1024 bytes equals 1 KB (kilobyte) but I was reading on the internet about decimal and binary system.
Quite simple...
The word 'Byte' is a computing reference for which the letter 'B' is used as abbreviation. It must follow then that any reference to Bytes, eg. KB, MB etc, must be based on the well known and widely accepted 1024 base. Therefore 1KB must equal 1024 Bytes, 1MB must equal 1048576 Bytes (1024x1024) etc.
Any non-computing reference to Kilo/Mega etc. Is based on the decimal 1000 base, eg. 1KW or 1KiloWatt which is 1000 Watts.