---
title: "What is the difference between char , varchar and nvarchar?"  
description: "What is the difference between char , varchar and nvarchar?"  
author: "Sumit Kesarwani"  
published: 2013-12-29  
updated: 2020-09-16  
canonical: https://www.mindstick.com/interview/1868/what-is-the-difference-between-char-varchar-and-nvarchar  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is the difference between char , varchar and nvarchar?

char(n)Fixed length non unicode character data with length of n bytes.n must be a value from 1 through 8,000.

varchar(n)variable length non unicode character data with length of n bytes.

nvarchar(n)variable length unicode character data of n characters. n must be a value from 1 through 4,000.

## Answers

### Answer by Sumit Kesarwani

char(n)Fixed length non unicode character data with length of n bytes.n must be a value from 1 through 8,000.

varchar(n)variable length non unicode character data with length of n bytes.

nvarchar(n)variable length unicode character data of n characters. n must be a value from 1 through 4,000.


---

Original Source: https://www.mindstick.com/interview/1868/what-is-the-difference-between-char-varchar-and-nvarchar

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
