The needs of Indonesian consumers are influenced by the use of online buying and selling transactions in the business world, especially legal protection. Legal protection issues in the e-commerce sector, include issues regarding the rights of parties, especially consumers of buying and selling online. This research aims to determine the extent to which online transactions for buying and selling are protected by consumer law and the legal efforts that consumers can take if an online transaction fails. The research method used in this article is a normative juridical research method. This research is qualitative descriptive. Data used in this research is secondary data which covers Primary, secondary, and tertiary laws. Data collection is a library technique. Qualitative description is used as a data analysis technique. The findings of this research and discussion include consumer rights based on Law Number 19 of 2016 concerning Information and Electronic Law and Law Number 8 of 1999 concerning the Protection of consumers and regulations related to the implementation of online transactions. The protection for consumers is supported by the involvement of various government agencies, national consumer protection agencies, and non-government consumer protection agencies. Conflicts related to non-fulfillment of obligations can be resolved through legal lanes using Law Number 8 of 1999 regarding litigation and non-litigation lawsuits.