MechSim is a free, zero-install planar linkage simulator. Drop pins, connect links, and watch your mechanism move — powered by a Newton-Raphson constraint solver.
Click Crank-Slider or Four-Bar in the sidebar to load a working mechanism instantly.
Hit ▶ Play or press Space. The simulator takes a snapshot and animates continuously.
Press ↺ Reset to return to the initial snapshot and re-enable all editing tools.
The vertical toolbar on the left of the canvas holds all building tools. Click or press the keyboard shortcut.
Every tool has a key. Tools are disabled while Running or Paused — press Reset first.
Load a reference image (photo, sketch, technical drawing) and overlay it behind your mechanism. Open the Background Image section in the left sidebar:
Load image — select any image file. It centres on your current view at 35% opacity.
Edit image — toggle edit mode to adjust Scale, X, and Y position. The image shows at 60% opacity with a dashed border while editing.
Show image — checkbox to toggle visibility without removing it.
The background image is saved and restored with your project file.
The Weld tool (W) makes two links sharing a pin move as a rigid body. Click the first link, then click the second — they must share a common pin. MechSim locks the angle between them by adding a distance constraint between their far pins, forming a rigid triangle.
You can create multiple independent welds through the same pin (e.g., weld link A–B and separately weld link C–D, even if all four links share the same pin). Click the same pair again to remove the weld. Welded pins show an ✕ marker and a dashed line between the far pins.
When you stop a recording (⏹ Stop rec), the simulation automatically pauses. This lets you review your recorded data without the mechanism continuing to move. Press ▶ Resume to continue, or ↺ Reset to return to the initial state.
The top-right overlay now shows elapsed simulation time in seconds (accounting for speed multiplier). The timer starts from 0 when you press Play and resets to 0 on Reset or Clear.
The fundamental mechanisms of planar kinematics, all assemblable from pins and links.
Crank, coupler, rocker, ground. Grashof's law governs whether it's a crank-rocker, double-crank, or double-rocker. Foundation of engines, wipers, walking machines.
Converts rotation to reciprocating linear motion. The foundation of piston engines and pumps. Built with a grounded crank, coupler, and a fixed-axis slider pin.
A four-bar where the coupler midpoint traces an approximate straight line — useful for converting rotation to translation without a prismatic joint.
Three slider types: straight rail, circular arc (3-point), and full 360° circle. Each slider pin can be passive (coupler-driven) or active (motor speed).
The four-bar is the simplest closed kinematic chain. Three links plus the ground.
Every link contributes a scalar equation f(q)=0. MechSim assembles the Jacobian and iterates:
The tol and iter inputs in the header control convergence. Lower tol = more precise. Higher iter = handles complex configurations.
.mechsim.json file. Click 📂 Open to reload it. No account needed — fully portable..csv — timestamps start at zero for easy analysis.Free, browser-based, no installation. Works in Chrome, Edge, Firefox and Safari.
▶ Launch Simulator