This article describes how the ion selectivity of channelrhodopsin is determined with electrophysiological whole-cell patch-clamp recordings using HEK293 cells. Here, the experimental procedure for investigating chloride selectivity of an anion-selective channelrhodopsin is demonstrated. However, the procedure is transferable to other channelrhodopsins of distinct selectivity.