In the present study, we derive a new B-spline technique namely trigonometric B-spline collocation algorithm to solve some initial boundary value problems for the nonlinear Klein-Gordon equation. In order to carry out the time integration with Crank-Nicolson implicit method, the order of the equation is reduced to give a coupled system of nonlinear partial differential equations. The collocation approximation based on trigonometric cubic B-splines for spatial discretization is followed by the linearization of the nonlinear term. The efficiency and accuracy of the present method are validated by measuring the error between the numerical and analytical solutions when exist. The conservation laws representing momentum and energy are also computed for all problems.