Belonging to the field of medical technologies, the invention relates to a prescription and preparation method for topical gel and ointment dosage forms containing tranilast component, and therapeutic effects of the dosage forms in keloid and hypertrophic scar fields. The topical gel and ointment contain tranilast, a cosolvent, a substrate, a humectant, a penetration enhancer, a preservative, a pH regulator, purified water and other ingredients. The preparation method includes the steps of: 1. taking a prescribed amount of the substrate, adding a proper amount of purified water, performing full swelling at 20-80DEG C, adjusting the pH to less than 5, adding a prescribed amount of humectant, and conducting heat preservation to obtain A; 2. taking a prescribed amount of tranilast, the cosolvent, the preservative, and a proper amount of purified water, carrying out heating dissolving at 20-80DEG C, and performing heat preservation to obtain B; and 3. Pouring B into A, conducting heat preservation and swelling, and stirring the mixture evenly, thus obtaining the products. The tranilast gel and ointment provided by the invention have the pharmacological activity of treating hypertrophic scars and keloids.