0Pricing
Elixir & Phoenix: Scalable Backend Development · Lesson

Strings, Binaries & Sigils in Elixir

Explore how Elixir represents text as UTF-8 binaries and use sigils to write strings, lists, and regexes concisely.

Strings Are UTF-8 Binaries

An Elixir string is a UTF-8 binary in double quotes — not a list of characters. Keep that distinction in mind.

name = "Elixir"
IO.puts(name)

String Concatenation

Join two strings with <>, which concatenates the underlying binaries.

greeting = "Hello, " <> "World"
IO.puts(greeting)

All lessons in this course

  1. Introduction to Elixir Language
  2. Basic Data Types and Operators
  3. Pattern Matching and Control Flow
  4. Strings, Binaries & Sigils in Elixir
← Back to Elixir & Phoenix: Scalable Backend Development