Map from Google - El_Salvador

El Salvador, a small country in Central America, has a tropical climate, hot all year round along the coasts and the lowlands below 3,300 feet, called tierras calientes, with little difference in the temperature (only a few degrees) throughout the year. The real difference between the seasons is found in rainfall and humidity: the rainy season, from late April to October, is definitely muggy. Rainfall occurs mainly as downpour or thunderstorm in the afternoon, so that the amount of sunshine hours, which is great in the dry months, remains acceptable even during the rainy season.
In the capital San Salvador 68 inches of rain per year fall. From June to September it rains a lot, about 12 inches per month, distributed in 20 days; on the other hand, from December to March it almost never rains. Here is the average precipitation.
Average precipitation - San Salvador
San SalvadorJanFebMarAprMayJunJulAugSepOctNovDecYear
Prec. (in)

The city is located at 2,300 feet above sea level, so it's still in the tierras calientes, but the altitude makes certainly the heat more bearable, in fact the maximum temperature ranges from 84 degrees Fahrenheit from September to November, to 90 °F in March and April. The minimum drops a few degrees below 68 °F during the period from November to March. Anyway, the rainy season, from May to October, is still sultry.
Here are the average temperatures in San Salvador.
Average temperatures - San Salvador
San SalvadorJanFebMarAprMayJunJulAugSepOctNovDec
Min (°F)616364666868666666666463
Max (°F)868690908886868684848486

Along the coast of the Pacific Ocean, the heat is more intense, so much so that the night temperatures range from 73 to 75 °F and the maxima from 86 to 88 °F. However, there can be very hot days, in which highs can reach 95 °F. During the rainy season (which occurs in the same period), the heat is annoying because it's sultry. In inland valleys at low altitude, the distance from the sea makes the heat more uncomfortable, due to the less windy conditions.
Average temperatures - Acajutla
Min (°F)737377777777757573757373
Max (°F)888888888886888886888888

For a beach vacation, the sea is warm throughout the year, ranging from 82 °F to 86 °F.
Sea temperature - Acajutla
Sea (°F)828284868684848484848484

In inland areas there are volcanoes, plateaus and mountains, and the weather gets cooler with altitude. At intermediate altitudes a cloud forest grows; at high altitudes, above 6,500 feet, it can get cold in the winter nights. The highest point is Cerro El Pital, although the summit, at 8,957 feet, is located in Honduras; from November to March on the top you can see the snow.
From December to March, sometimes El Salvador is reached by the Norte, a cool wind from the United States that in the plains can bring at most a little cool in the evening and at night, while in San Salvador it can bring a little cold at night, with lows around 50 °F.
In the period from June to November, El Salvador can be affected by hurricanes, especially between August and October.
El Salvador

When to go

The best time to visit El Salvador, whether you intend to visit the cities and make excursions, or to go to the beach, runs from December to mid-April. In the plains, December and January are preferable because they are less hot.

What to pack

All year round, light summer clothes in the plains; a sweatshirt or sweater for the evening in San Salvador. From May to October, possibly a light raincoat for thunderstorms.
For the mountains: hiking shoes, jacket.