We use laboratory experiments with human subjects to test the relevance of different inflation-targeting regimes. In particular and within the standard New Keynesian model, we evaluate to what extent communication of the inflation target is relevant to the success of inflation targeting. We find that if the central bank cares only about inflation stabilization, announcing the inflation target does not make a difference in terms of macroeconomic performance compared with a standard active monetary policy. However, if the central bank also cares about the stabilization of economic activity, communicating the target helps to reduce the volatility of inflation, interest rate, and output gap, although their average levels are not affected. This finding is consistent with the theoretical literature and provides a rationale for the adoption of a flexible inflation-targeting regime.