This paper focuses on time-optimal path-constrained trajectory planning, a subproblem in time-optimal motion planning of robot systems. Through a nonlinear change of variables, the time-optimal trajectory planning is transformed here into a convex optimal control problem with a single state. Various convexity-preserving extensions are introduced, resulting in a versatile approach for optimal trajectory planning. A direct transcription method is presented that reduces finding the globally optimal trajectory to solving a second-order cone program using robust numerical algorithms that are freely available. Validation against known examples and application to a more complex example illustrate the versatility and practicality of the new method.Index Terms-time-optimal trajectory planning, time-optimal control, convex optimal control, path tracking, trajectory planning, convex optimization, second-order cone program, direct transcription.