Convert Quaternions and 3D Rotations Instantly

A free browser-based quaternion and rotation converter for robotics, aerospace, and game development. Instantly switch between quaternion (w,x,y,z), Euler angles (all 12 orders, intrinsic and extrinsic), axis-angle, and 3×3 rotation matrix representations. Handles gimbal-lock gracefully and normalizes quaternions automatically.

How to Use the Quaternion Converter

1
Choose your input format

Click one of the four tabs: Quaternion, Euler Angles, Axis-Angle, or Rotation Matrix.

2
Enter the values

Fill in the numbers for the selected format. All other representations update live as you type.

3
Copy the output

Click the Copy button next to any output block to copy its values to the clipboard.

4
Use presets for common rotations

Select a preset like "Identity" or "90° Yaw" to pre-fill the inputs with a well-known rotation.

Translate between quaternions, Euler angles, axis-angle and rotation matrices in real time

Quaternion / Euler Angles / Axis-Angle / Rotation Matrix
Quaternion (w, x, y, z)
⚠️ Gimbal lock detected — Euler angles are not unique near ±90° pitch.
⚠️ Axis is the zero vector — axis-angle is not unique.
⚠️ Matrix is not a valid rotation matrix (det ≠ 1).
Outputs
Quaternion
w=1, x=0, y=0, z=0
Euler Angles
ZYX intrinsic: α=0°, β=0°, γ=0°
Axis-Angle
axis=[0, 0, 1], angle=0°
Rotation Matrix
[[1, 0, 0], [0, 1, 0], [0, 0, 1]]
3D Orientation Preview
X axis
Y axis
Z axis
The cube and axis triad rotate live with the current rotation. Z is up.
Copy as Code
Quaternion(x=0.0, y=0.0, z=0.0, w=1.0)
Presets
Published Updated