UTF-8 Explained: Unicode Text, Bytes and Consistent Encoding
Does every character take one byte to store? UTF-8 represents a Unicode code point using one to four bytes.
1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.
Prefer YouTube? Watch this video on our YouTube channel (opens in a new tab).
The six points in the video
This is a silent video. The headings, explanations and labels below reproduce the information on screen.
-
Step 1: Start with Unicode text
UTF-8 is an encoding for representing Unicode characters.
On-screen labels: Unicode text; UTF-8 encoding; Stored representation.
-
Step 2: Allow different byte lengths
A code point can need more than one byte.
On-screen labels: One to four bytes; Different characters; Variable length.
-
Step 3: Recognise ASCII compatibility
The first 128 character values align with ASCII.
On-screen labels: ASCII range; Matching values; Compatible text.
-
Step 4: Count the intended thing
A byte count and a count of visible characters answer different questions.
On-screen labels: File bytes; Text content; Different measures.
-
Step 5: Keep the transfer consistent
The writing and reading systems need compatible encoding choices.
On-screen labels: Written bytes; Declared encoding; Receiving system.
-
Step 6: Check representative examples
Review accented names, symbols and multilingual text after transfer.
On-screen labels: Accented text; Required symbols; Expected result.
A practical check for your business
Agree the encoding at the file or application boundary. Check accented text and required symbols after transfer, and distinguish byte limits from counts of visible text.
Sources and further detail
Common questions
Does every character take one byte to store?
UTF-8 represents a Unicode code point using one to four bytes. Test the saved and received text using representative names and symbols.
Go further
More video tips
All 205 videos →
Video Codecs Explained: The Encoded Picture Inside a Media File
Video codecs, explained.
Video Bitrate Explained: Data Rate, Picture Quality and Playback
Video bitrate, explained.