Softwr
SDL logo

SDL

Free cross-platform C library for low-level audio, input and graphics access

SDL is free to use. Simple DirectMedia Layer (SDL) is a free zlib-licensed C library giving low-level audio, input and graphics access on desktop and mobile systems. Softwr lists it under Game Development. SDL is available on Windows, macOS, Linux, iOS.

Overview

What is SDL?

Simple DirectMedia Layer, or SDL, is a cross-platform development library giving low-level access to audio, keyboard, mouse, joystick and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators and popular games, including Valve's catalogue and many Humble Bundle games. SDL officially supports Windows, macOS, Linux, iOS and Android, with other platforms available in the source code. It is written in C, works natively with C++, and has bindings for languages including C# and Python. SDL is distributed under the zlib licence, which allows free use in any software, including commercial work. Sam Lantinga created it and first released it in 1998 while working at Loki Software. SDL 3 became the stable version in January 2025, with a migration guide from earlier versions. It is a library rather than an engine, so there is no editor, scene system, physics or asset pipeline, and developers write that code themselves or add other libraries. It suits programmers who want control over their own engine.

What people use it for

  • Writing a custom game engine
  • Porting games to many platforms
  • Emulators and media players
  • Cross-platform tools with windowing and input
  • Teaching low-level game programming

The honest half

Where does SDL fall short?

The limits buyers hit most with SDL: A low-level library with no editor or scene tools; and physics, assets and game logic must be built by the developer. Each is concrete and checkable: the half of a review a vendor will not write.

  • A low-level library with no editor or scene tools
  • Physics, assets and game logic must be built by the developer
  • Moving from SDL 2 to SDL 3 needs code changes
  • Steeper start than an engine for beginners

Cross-shopped

What are the alternatives to SDL?

The closest alternatives to SDL are Raylib, Pygame and LÖVE. Each is a tool buyers genuinely weigh against it, with the reason why.

  • SDL vs Raylib

    Raylib: Simple C library with a friendlier set of drawing and audio functions

  • SDL vs libGDX

    libGDX: Java framework for desktop, mobile and web games

Capabilities

What can SDL do?

SDL lists 7 features, including audio output; keyboard, mouse and joystick input; and graphics via OpenGL and Direct3D.

  • Audio output

  • Keyboard, mouse and joystick input

  • Graphics via OpenGL and Direct3D

  • Windowing and events

  • Threads and timers

  • C API with many language bindings

  • Cross-platform source code

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

Is SDL free?

Yes, it is distributed under the zlib licence, which allows free use in any software.

Source
Which platforms does SDL support?

Windows, macOS, Linux, iOS and Android officially, with others in the source code.

Source
Who created SDL?

Sam Lantinga created it and first released it in 1998.

Source

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

Share

Keep looking

Where to go from SDL

Best Game Development software for

Compare SDL with

Other Game Development software

  • A simple and easy-to-use library for game development

    Free plan10 researched notes
  • Java-based game development framework

    Free plan11 researched notes
  • MIT-licensed modern C++ game engine for mobile, desktop, Xbox and WebAssembly

    Free plan11 researched notes
  • Open-source 2D game engine for Go that deploys to desktop, web and mobile

    Free plan11 researched notes
  • Create games using C# and MonoGame

    Free plan11 researched notes
  • Python library for game development

    Free plan9 researched notes
  • Framework for making 2D games in Lua

    Free plan15 researched notes
  • Free C++ multimedia library for 2D graphics, audio, windows and networking in games

    Free plan12 researched notes
  • Real time 3D engine and editor for making games and interactive apps on many platforms

    Free plan16 researched notes
  • 2D game engine and editor with a drag and drop system and GML scripting language

    Free plan15 researched notes
  • A refreshingly simple data-driven game engine built in Rust

    Free plan11 researched notes
  • Create cross-platform 2D games and apps

    Free plan10 researched notes
  • Cloud-based WebGL game development platform

    Free plan15 researched notes
  • The game engine for the creators of King

    Free plan10 researched notes
  • Open 3D Engine - Professional game engine

    Free plan16 researched notes
  • Fast, free, and fun open source framework for Canvas and WebGL

    Free, then $12/mo17 researched notes
  • Modern 3D game engine with visual editor

    Free plan13 researched notes
  • Player data backend for games

    Free plan9 researched notes

Softwr does not host reviews and shows no star rating for SDL, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on SDL

Best Game Development software alternatives

Free open-source browser tool for animation and simple games

open-source

Drag-and-drop visual novel studio with browser export and no royalties

one-time

Free cross-platform level editor for Quake-engine games

open-source

Free open-source pixel art multitool made with Godot

open-source

Visual desktop editor for building Phaser 4 games, from $12 a month

subscription

Open-source high-level multiplayer networking library for Unity

open-source

Tiny, fast, fully open-source HTML5 game engine for 2D and 3D

open-source

Free open-source sprite editor and animation tool, forked from Aseprite

open-source

Compare SDL with alternatives