In the present work, a hyperspectral imaging system (imaging spectrometer) using a commercial webcam has been designed and developed. This system was able to capture two-dimensional spectra (in emission, transmission and reflection modes) directly from the scene in the desired wavelengths. Imaging of the object is done directly by linear sweep (pushbroom method). To do so, the spectrometer is equipped with a suitable collecting lens and a linear travel stage. A 1920 x 1080 pixel CMOS webcam was used as a detector. The spectrometer has been calibrated by the reference spectral lines of standard lamps. The spectral resolution of this system was about 2nm and its spatial resolution was about 1 mm for a 10 cm long object. The hardware solution is based on data acquisition working on the USB platform and controlled by a LabVIEW program. In this system, the initial output was a three-dimensional matrix in which two dimensions of the matrix were related to the spatial information of the object and the third dimension was the spectrum of any point of the object. Finally, the images in different wavelengths were created by reforming the data of the matrix. The free spectral range (FSR) of the system was 400 to 1100 nm. The system was successfully tested for some applications, such as plasma diagnosis as well as applications in food and agriculture sciences.