InfoBooks

49 Free Programming Books [PDF]

by InfoBooks

Looking for programming books? We've gathered 49 free programming books in PDF, covering languages like Python, JavaScript, Java, C++, C#, Go, Rust, TypeScript, Kotlin, Swift, R, PHP, and MATLAB.

These books teach you how to write code, from your first program to building real projects. Whether you're picking your first programming language or adding a new one to your toolkit, there's something here for every level.

Browse by language or start with the general section. Every book is free to read online or download as PDF.

General Programming Books

These books cover the foundations of programming. Language design, algorithms, computer science basics, and assembly language.

C and C++ Books

C and C++ are the backbone of systems programming. These books cover everything from pointers and memory management to modern C++ patterns.

C# Books

C# powers Windows apps, Unity games, and enterprise software. This textbook covers fundamentals, OOP, and data structures in over 1,100 pages.

Java Books

Java runs on billions of devices. These books teach you object-oriented programming and computational thinking from the ground up.

JavaScript Books

JavaScript runs in every browser. These books cover modern JS from beginner guides to advanced topics like async programming and Node.js.

  • Eloquent JavaScript

    Highly regarded guide to JavaScript programming, covering language fundamentals, browser APIs, Node.js, and project-based learning.

    Marijn Haverbeke

    Format: PDF 463 pages 2.16 MB
    Verified PDF · Secure download
  • Structure and Interpretation of Computer Programs, JavaScript Edition

    The legendary SICP textbook adapted for JavaScript. Covers computation, abstraction, data structures, interpreters, and fundamental programming concepts.

    Harold Abelson and Gerald Jay Sussman

    Format: PDF 642 pages 4.33 MB
    Verified PDF · Secure download
  • JavaScript Notes for Professionals

    Extensive JavaScript reference covering syntax, DOM manipulation, async programming, ES6+ features, and common patterns. Compiled from Stack Overflow.

    GoalKicker

    Format: PDF 490 pages 4.04 MB
    Verified PDF · Secure download
  • JavaScript For Impatient Programmers

    Modern JavaScript guide for experienced programmers, covering ES2019+ features, async programming, modules, and advanced concepts.

    Dr. Axel Rauschmayer

    Format: PDF 375 pages 1.64 MB
    Verified PDF · Secure download
  • JavaScript for beginners

    Beginner-friendly introduction to JavaScript covering variables, functions, DOM manipulation, and basic programming concepts.

    Daniel Winterstein

    Format: PDF 130 pages 0.58 MB
    Verified PDF · Secure download

Python Books

Python is the most popular language for beginners. These books teach you programming fundamentals with clear syntax, covering data structures, web scraping, and practical projects.

  • An Introduction to Programming and Computer Science with Python

    University-level introduction to computer science and programming using Python, covering algorithms, data structures, and computational thinking.

    Clayton Cafiero

    Format: PDF 402 pages 2.47 MB
    Verified PDF · Secure download
  • Python for Everybody

    Widely-used introduction to Python covering data structures, web scraping, databases, and data visualization. Designed for non-programmers.

    Charles R. Severance

    Format: PDF 247 pages 1.79 MB
    Verified PDF · Secure download
  • Think Python

    Classic introduction to Python that teaches programming through computational thinking. Covers functions, recursion, data structures, and OOP.

    Allen Downey

    Format: PDF 240 pages 0.8 MB
    Verified PDF · Secure download
  • Introduction to Python Programming

    Detailed introduction to Python covering syntax, data types, functions, file handling, OOP, and basic GUI programming with Tkinter.

    Udayan Das, Aubrey Lawson

    Format: PDF 415 pages 3.2 MB
    Verified PDF · Secure download
  • A Practical Introduction to Python Programming

    Hands-on Python guide with extensive exercises covering strings, lists, functions, dictionaries, file I/O, and basic algorithms.

    Brian Heinold

    Format: PDF 263 pages 1.69 MB
    Verified PDF · Secure download

Go Books

Go was created at Google for building fast, reliable servers. These books cover Go's simple syntax and built-in concurrency with hundreds of working examples.

  • The Way To Go

    Thorough introduction to Go covering all language features with 225+ working examples and 135 exercises.

    Ivo Balbaert

    Format: PDF
    Verified PDF · Secure download
  • An Introduction to Programming in Go

    Clear, approachable introduction to Go covering fundamentals, concurrency, packages, and testing.

    Caleb Doxsey

    Format: PDF 165 pages 0.74 MB
    Verified PDF · Secure download
  • Learning Go

    Practical Go guide with exercises, covering the language from basics to advanced topics. CC BY-NC-SA 3.0.

    Miek Gieben

    Format: PDF 112 pages 0.62 MB
    Verified PDF · Secure download
  • The Little Go Book

    Concise introduction to Go for developers who already know another programming language. CC BY-NC-SA 4.0.

    Karl Seguin

    Format: PDF 84 pages 0.27 MB
    Verified PDF · Secure download

Rust Books

Rust gives you C-level performance with memory safety guarantees. These books include the official Rust guide and Google's internal training material.

  • The Rust Programming Language

    The official Rust book covering ownership, borrowing, concurrency, and all core language features. MIT/Apache 2.0 license.

    Steve Klabnik, Carol Nichols

    Format: PDF 670 pages 4.41 MB
    Verified PDF · Secure download
  • Comprehensive Rust

    Google's official Rust training course covering basics through advanced topics including Android and Chromium development. Apache 2.0 / CC BY 4.0.

    Martin Geisler (Google)

    Format: PDF 582 pages 2.3 MB
    Verified PDF · Secure download

TypeScript Books

TypeScript adds types to JavaScript. These guides cover the type system, advanced patterns, and framework integration to help you catch bugs before your code runs.

  • TypeScript Deep Dive

    Comprehensive guide to TypeScript covering type system internals, compiler options, testing, and advanced patterns. CC BY 3.0.

    Basarat Ali Syed

    Format: PDF 145 pages 1.37 MB
    Verified PDF · Secure download
  • TypeScript Notes for Professionals

    Concise TypeScript reference covering types, arrays, enums, functions, classes, generics, and framework integration. CC BY-SA.

    GoalKicker

    Format: PDF 97 pages 1.11 MB
    Verified PDF · Secure download

Kotlin Books

Kotlin is the official language for Android development. These books cover syntax, functions, coroutines, and null safety for programmers coming from other languages.

  • Elements of Kotlin

    Complete introduction to Kotlin for programmers coming from other languages. Covers syntax, functions, classes, and coroutines. CC BY-SA 4.0.

    Mark L. Murphy

    Format: PDF 413 pages 1.83 MB
    Verified PDF · Secure download
  • Kotlin Notes for Professionals

    Quick reference covering Kotlin fundamentals, null safety, collections, lambdas, and generics. CC BY-SA.

    GoalKicker

    Format: PDF 94 pages 1 MB
    Verified PDF · Secure download

PHP Books

PHP powers a huge portion of the web. These books cover PHP fundamentals, modern features, and database operations from beginner tutorials to professional references.

  • PHP Notes for Professionals

    Extensive PHP reference covering PHP 7 features including type declarations, anonymous classes, and modern development patterns. CC BY-SA.

    GoalKicker

    Format: PDF 481 pages 3.34 MB
    Verified PDF · Secure download
  • PHP Reference: Beginner to Intermediate PHP5

    Reference guide covering PHP5 functions, string manipulation, arrays, file handling, and database operations. Quick-lookup format with examples.

    Mario Lurig

    Format: PDF 163 pages 0.82 MB
    Verified PDF · Secure download
  • An Introduction to PHP Scripting

    Beginner guide to PHP scripting covering syntax, variables, forms, sessions, and MySQL database connections.

    Fasthosts

    Format: PDF 100 pages 0.55 MB
    Verified PDF · Secure download

R Books

R is the go-to language for statistical computing and data visualization. These books cover data manipulation, plotting with ggplot2, and statistical modeling.

  • Introduction to Programming in R

    Comprehensive introduction to R programming covering data objects, manipulation, visualization with ggplot2, and statistical analysis.

    Aedin Culhane

    Format: PDF 206 pages 1.44 MB
    Verified PDF · Secure download
  • An Introduction to R

    Official R documentation covering the language environment, data manipulation, statistical models, and graphics. Written by the R Core Team.

    W. N. Venables, D. M. Smith & the R Core Team

    Format: PDF 105 pages 0.57 MB
    Verified PDF · Secure download
  • R for Beginners

    Accessible introduction to R covering data handling, objects, graphics, and basic statistical operations. Written for absolute beginners.

    Emmanuel Paradis

    Format: PDF 76 pages 0.51 MB
    Verified PDF · Secure download
  • The Undergraduate Guide to R

    Beginner-friendly R guide designed for undergraduates, covering installation, data types, plotting, and basic functions.

    Trevor Martin

    Format: PDF 68 pages 0.45 MB
    Verified PDF · Secure download
  • R Programming

    University course notes on R programming from Oxford, covering objects, functions, data manipulation, graphics, and statistical modeling.

    Robin Evans

    Format: PDF 82 pages 0.49 MB
    Verified PDF · Secure download

Swift Books

Swift is Apple's language for iOS and macOS development. These books include Apple's official Swift guide and practical tutorials with hands-on exercises.

  • The Swift Programming Language (Swift 5.7)

    Official Apple guide to Swift covering language basics, advanced features, memory management, concurrency, and the complete language reference.

    Apple Inc

    Format: PDF 1040 pages 7.48 MB
    Verified PDF · Secure download
  • Swift Notes for Professionals

    Extensive Swift reference compiled from Stack Overflow covering syntax, protocols, generics, concurrency, and common development patterns.

    GoalKicker

    Format: PDF 291 pages 2.64 MB
    Verified PDF · Secure download
  • Learn Swift by examples

    Example-based Swift tutorial covering variables, functions, arrays, protocols, generics, and common patterns through hands-on exercises.

    Piotr Fulmańsk

    Format: PDF 331 pages 1.25 MB
    Verified PDF · Secure download

Matlab Books

MATLAB is used in engineering and scientific computing. These short guides teach you workspace basics, matrix operations, and data visualization.

That's our collection of free programming books in PDF. Pick a language, grab a book, and start building.

Looking for more? Browse all our free computer science books for topics like algorithms, databases, and software engineering.

You Might Also Like

HELP US SPREAD THE READING HABIT!