The embodiments herein disclose a hypochlorous acid based ophthalmic composition, comprising stabilized hypochlorous acid. The stabilized hypochlorous acid is added in the ophthalmic composition as an anti-microbial agent and/or a preservative. The stabilized hypochlorous acid is added in the ophthalmic composition to be utilized for contact lens solution. The stabilized hypochlorous acid is added in the ophthalmic composition in a non-toxic predetermined amount. The non toxic predetermined amount of stabilized hypochlorous acid less than 0.05% v/v. The stabilized hypochlorous acid is added in the ophthalmic composition as a preservative in a predetermined amount ranging 0.0005% v/v-0.05% v/v. The stabilized hypochlorous acid is added in the ophthalmic composition as an anti-microbial agent after determining free available chlorine. The free available chlorine in the stabilized hypochlorous acid is in a range of 50 ppm-500 ppm. The predetermined ophthalmic compositions are selected from a group consisting of eyedrop solution, eyedrop suspension, eyedrop gel and ointment. anti-microbial eye drops, eye cleansing drops, ophthalmic lubricants and contact lens solutions.