To optimize the performance of electric double-layer capacitors (EDLCs) with ionic liquids (ILs) based on LiTFSI and 2-oxazolidinone as electrolyte, we simulated possible IL structures and ion sizes, and IL compatibility with three kinds of carbon materials was investigated. Mesoporous activated carbon (MEAC) with a surface area of 2675 m 2 g –1 and an average pore size of 2.5 nm was most compatible with the IL. The electrochemical performances of the EDLCs based on the MEAC electrode and the IL electrolyte were evaluated using cyclic voltammetry, AC impedance spectroscopy, galvanostatic charge/discharge test, and so on. The capacitance of EDLCs based on MEAC was as high as 175.2 F g –1 at 0.1 mA (75 mA g –1 ) and at room temperature. The capacitor also showed good rate capability and cycle performance. With temperature increased to 80 °C, the capacitance increased, and the equivalent series resistance of the EDLCs decreased dramatically, implying better performance without safety concerns.