The present study was designed to improve the ocular availability of ketorolac tromethamine and to prolong its precorneal residence time for the treatment of postoperative ocular inflammation. Ketorolac tromethamine nanodispersions were successfully prepared by nanoprecipitation method using Eudragit® RL100. These nanodispersions were characterized in terms of particle size, zeta potential, entrapment efficiency and in vitro release. Consequently, the optimum nanodispersion was incorporated into thermosensitive in situ gel. The optimum gelling capacity was obtained by 20% Pluronic® F-127 and 14% Pluronic® F-127/1.5% HPMC K4m. The gelling temperature and gelation time of the in situ gels increased by decreasing the concentration of Pluronic® F-127. The mucoadhesive strength was significantly improved by the addition of HPMC. Incorporation of ketorolac tromethamine loaded nanodispersions into in situ gel bases sustained the release of ketorolac tromethamine, improved its ocular availability and prolonged its residence time without causing irritation to eye.