Card counting is not illegal. No one will send you to jail for it. However, casino venues prohibit counting cards. And if you get caught, an online casino will ban you, and most probably, it will deny your access to blackjack games. Therefore, we do not recommend counting cards in blackjack. Moreover, it is almost impossible at online casinos.