Euler to Quaternions Converter

Convert Euler rotations to quaternions and back for animation.

Quaternion (w, x, y, z)

Resulting Euler (degrees)

Convention applied: XYZ order, normalized quaternion. Type a quaternion (w, x, y, z) separated by commas or spaces to convert it back to Euler.

What is an Euler to quaternion converter?

An Euler to quaternion converter transforms a rotation expressed in Euler angles (X, Y, Z in degrees) into a quaternion (w, x, y, z), and back the other way. Quaternions avoid gimbal lock and are the standard format for interpolating rotations in 3D animation, rigs and Blender scripting.

How to use this tool

  1. Enter the X, Y and Z angles in degrees.
  2. The quaternion (w, x, y, z) is computed and shown instantly.
  3. Press "Copy quaternion" to use it in your script or keyframe.
  4. For the reverse conversion, type a quaternion separated by commas or spaces.
  5. The resulting Euler angles appear in degrees with three decimals.

Typical use cases

  • Convert Blender UI rotations to quaternion values for Python scripting.
  • Avoid gimbal lock when animating complex rigs and cameras.
  • Interpolate rotations smoothly between keyframes using slerp.

Frequently asked questions

What is gimbal lock?

It is the loss of one degree of freedom that happens when two axes of an Euler rotation align (for example, when rotating 90° on Y). Quaternions do not suffer from this because they represent the rotation as a single rotation around one axis.

Which rotation order is applied?

The conversion uses XYZ order with a normalized quaternion, the most common in 3D tools. If your software uses another order, the values may differ slightly.

How do I type a quaternion for the reverse conversion?

Type the four components in the order w, x, y, z separated by commas or spaces, for example: 0.653282, -0.270598, 0.270598, 0.653282.