This paper presents a novel fractional-order PID controller tuning strategy based on Bode's optimal loop shaping which is commonly used for LTI feedback systems. Firstly, the controller parameters are achieved based on flat phase property and Bode's optimal reference model, so that the controlled system is robust to gain variations and can achieve desirable transient performance according to various control requirements. Then, robustness analysis of the controlled system is carried out to support the results. Furthermore, the parameter setting is analyzed to demonstrate the superiority of the proposed controller. At last, some simulation examples are shown to verify the accuracy and usefulness of the proposed control strategy. The proposed fractional-order PID controller does not have any restriction on the controlled plant, so it can be widely applied on both integer-order and fractionalorder systems.