Counting cards in online blackjack is basically legal, as long as you don’t use any external tools. A casino does have the option to bar players they suspect of counting cards. Many card counters are less enthusiastic about online blackjack than blackjack in the regular casino.