Three-dimensional (3D) rod-like carbon structures derived from natural ramie fibers and two-dimensional (2D) carbon nanosheets derived from corncobs have been fabricated by heat treatment at 700 °C under argon atomsphere. The structure and morphology of the as-obtained ramie fiber carbon (RFC) and corncob carbon (CC) were characterized by X-ray diffraction (XRD), Raman spectroscopy, scanning electron microscopy (SEM) and transmission electron microscopy (TEM) technique. The electrochemical performances of the biomass carbon-based anode in lithium-ion batteries (LIBs) and sodium-ion batteries (SIBs) were investigated. When tested as anode material for lithium ion batteries, both the RFC microrods and CC nanosheets exhibited high capacity, excellent rate capability, and stable cyclability. The specific capacity were still as high as 489 and 606 mAhg-1 after 180 cycles when cycled at room temperature in a 3.0-0.01 V potential (vs. Li/Li+) window at current density of 100 mAg-1, respectively, which are much higher than that of graphite (375 mAhg-1) under the same current density. Although the anodes in sodium ion batteries showed poorer specific capability than that in lithium-ion batteries, they still achieve a reversible sodium intercalation capacity of 122 and 139 mAhg-1 with similar cycling stability. The feature of stable cycling performance makes the biomass carbon derived from natural ramie fibers and corncobs to be promising candidates as electrodes in rechargeable sodium-ion batteries and lithium-ion batteries.