A 2D simulator for vision based autonomous road following is designed using MATLAB. The simulator provides options for selecting road image, placing hurdles on road and the algorithm for following the road autonomously. With the road image containing hurdles and algorithm selected, the simulator draws the robot trajectory and also plots the error curves. A real time implementation of simulated algorithms is finally presented. The simulator can be employed to teach the fundamental concepts in autonomous road following tasks.