An electrode array is disclosed which has applications for neural stimulation and sensing. The electrode array, in certain embodiments, can include a plurality of electrodes each of which is flexibly attached to a common substrate using a plurality of springs to allow the electrodes to move independently. In other embodiments of the electrode array, the electrodes can be fixed to the substrate. The electrode array can be formed from a combination of bulk and surface micromachining, and can include electrode tips having an electroplated metal (e.g. platinum, iridium, gold or titanium) or a metal oxide (e.g. iridium oxide) for biocompatibility. The electrode array can be used to form a part of a neural prosthesis, and is particularly well adapted for use in an implantable retinal prosthesis.