This page demonstrates how to build online experiments using jsPsych. jsPsych is a JavaScript library for running behavioral experiments in a web browser. It contains a core library, which serves as the engine to run experiments, and a set of plugins, each of which defines the kind of tasks that subjects perform in experiments. There are two demo experiments in this tutorial: a sociolinguistics task and an identification task.

Task Purpose Link
Sociolinguistics task Participants are asked to listen to a conversation and answer several questions. Demo experiment
Identification task Participants are asked to listen to a conversation and identify what they heard between “pa” and “ba” by selecting a corresponding button on their electronic device. Demo experiment

Tutorial materials about online experiments

1. Creating online experiments using jsPysch: Sociolinguistics and Identification task Download
2. How to set up a web server Download
3. How to create a new user Download
4. How to set up a Filezilla Download
5. How to change permissions on data folders Download
6. How to link an experiment to MTurk Download

If you have any questions about these online experiments, please e-mail me at

This work was supported by the UTSC Research Competitiveness Fund (awarded to Dr. Yoonjung Kang, 2017).
Hyoung Seok Kwon made significant contributions to the design of the demo experiments.

Please cite as
Na-Young Ry. 2018. Online linguistics experiments using jsPsych.