The present invention relates to azetidine and cyclobutane derivatives, as well as their compositions, methods of use, and processes for preparation, which are JAK inhibitors useful in the treatment of JAK-associated diseases including, for example, inflammatory and autoimmune disorders, as well as cancer.