CodeToGo has now been used to run over one MILLION programs!
Write and run code in your favorite programming language, using your iOS device! Supports all iOS devices.
Just pick your language, write some code (with syntax highlighting for the most common languages), and run it. Each language has its own example "Hello World!" program for you to test.
CodeToGo gives you an API around ideone.com, allowing you to run code in many different programming languages (on a Linux server) and get the results back.
IMPORTANT NOTE: Unfortunately, because you can't actually run code on the iPhone, you MUST have an internet connection to run the code! You can however write, save, and load code without a connection.
INPUT: CodeToGo also supports supplying input (ahead of time) for your program - Just hit the "Input (stdin)" tab to set the user input (separating each different input with a new line), then hit the code tab to go back to writing code.
Save and load your code - The current code for a given language is automatically saved for you, and you can also save and later load different files for each language. You can also save and load files from Dropbox, or transfer to and from your computer with iTunes File Sharing.
For faster programming, CodeToGo even adds an extra row of commonly used keys to the default keyboard. You can also customize this extra row by touching the "Settings" button at the top right of the initial language screen.
If you need to jump to a specific line in your program (the location of an error, perhaps), you can do that too! The "Goto line" button lets you type in a line number and jump to it.
And if you're doing web development, you can render the output of your program as HTML! After running your program, just hit the "Render as HTML" button to see what it would look like on a web page.
Full list of supported languages (and their corresponding extensions):
Ada (.adb) + syntax highlighting
Assembly (gcc - .s; nasm - .asm) + syntax highlighting
AWK (.awk) + syntax highlighting
Bash (.sh) + syntax highlighting
C (.c) + syntax highlighting
C99 Strict (.c) + syntax highlighting
C# (C Sharp - .cs) + syntax highlighting
C++ (.cpp) + syntax highlighting
C++0x (.cpp) + syntax highlighting
COBOL 85 (.85.cob)
Common Lisp (.lisp) + syntax highlighting
D (.d) + syntax highlighting
Erlang (.hrl) + syntax highlighting
Fortran (.f) + syntax highlighting
Haskell (.hs) + syntax highlighting
HTML (.html) + syntax highlighting
Java (.java) + syntax highlighting
Lua (.lua) + syntax highlighting
Nemerle (.n) + syntax highlighting
Ocaml (.ml) + syntax highlighting
Pascal (.pas) + syntax highlighting
Perl (Perl - .pl; Perl6 - .p6.pl) + syntax highlighting
PHP (.php) + syntax highlighting
Prolog (GNU - .gnu.pl; SWI - .swi.pl) + syntax highlighting
Python (Python - .py, Python3 - .3.py) + syntax highlighting
R (.r) + syntax highlighting
Ruby (.ruby) + syntax highlighting
Scala (.scala) + syntax highlighting
SQL (SQLite - .sql) + syntax highlighting
Tcl (.tcl) + syntax highlighting
Visual Basic .NET (.vb)
Email comments, suggestions, bugs to nate AT pinkeh DOT com
- Updated for iOS 9
Ratings and ReviewsSee All
Doesn’t work unless connected to Wi-Fi
This app is good for what it’s worth. Definitely a 5 star app except for a few issues. Some languages don’t seem to be working 100%, but the majority do without any issues. However what’s up with the internet connection issue? I have unlimited LTE/4G with my phone plan and can never practice coding with this except when I’m on Wi-Fi? Defeats the purpose of a phone-to-go coding app so loses 2 stars.
Very handy app
I use C2G to run a Forth program I wrote to track my diet and use it every day, except when it says “Could not run! Are you connected to the internet?” I think this means that the server C2G runs on is down, or perhaps doing more important things, since my phone’s browser has no trouble connecting, and it is usually back up in a day or two. The ability to save my program to Dropbox also seems to have broken with IOS 10. Still, I’m not complaining too much. There is no other easy way to run a Forth program on my iPhone that I know of and I enjoy using it to play with new languages. Thanks for making it available!
Java In Your Pocket!
I need to re-learn/learn more about Java. I am working through a course on Udemy.
I want to be able to learn on the go, anywhere! I can watch the lessons anywhere via the Udemy iPhone app. But to write programs, I don't carry my laptop around everywhere.
Enter this absolutely awesome app! I can work through a couple lessons a day while on a break from work, waiting to pickup a kid, while sitting in the rest....aurant. Anywhere!
But wait, there's more! This app doesn't only do Java. It allows you to write, compile, and run programs in almost any programming language!
The developer was quick to respond to some intial questions I had as well.
This app is absolutely worth the price and is priceless to those wanting to learn Java without the overhead of a laptop computer.
Thank you, thank you, thank you for developing this. I hope gets updated as needed (for newer versions of iOS as well ad newer versions of the supported languages). I want to be able to use it forever!
With Family Sharing set up, up to six family members can use this app.